예제 #1
0
 public HttpResponseMessage GetDepOfParentCompanies(GetParentListDTO obj)
 {
     try
     {
         var Departments = _departmentServices.GetDepOfParentCompanies(obj);
         return(Request.CreateResponse(HttpStatusCode.OK, Departments));
     }
     catch (Exception ex)
     {
         throw new ApiDataException(1000, "Departments not found", HttpStatusCode.NotFound);
     }
 }