Beispiel #1
0
 public IHttpActionResult GetAllEmployers(int pageNo)
 {
     try
     {
         int count  = 0;
         var result = employerService.GetAllEmployerList(
             skip: (pageNo * Pagination.Size),
             take: Pagination.Size,
             count: out count);
         return(Ok(new { Success = result, Count = count }));
     }
     catch (Exception ex)
     {
         return(Ok(new { Error = ex.Message }));
     }
 }