public HttpResponseMessage Get(int EmployeeId) { var masterInfo = entities.Empmasters.where(e => e.EmployeeId == EmployeeId).FirstOrDefault(); if (masterInfo == null) { return Request.CreateErrorResponse(HttpStatusCode.NotFound, "No info"); } else { return Request.CreateResponse(HttpStatusCode.OK, masterInfo); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)