Esempio n. 1
0
 public HttpResponseMessage GetDesigByDepId(int depId)
 {
     try
     {
         var Designation = _designation.GetDesigByDepId(depId);
         return(Request.CreateResponse(HttpStatusCode.OK, Designation));
     }
     catch (Exception ex)
     {
         throw new ApiDataException(1000, "Designation not found", HttpStatusCode.NotFound);
     }
 }