Beispiel #1
0
        public IHttpActionResult Get([FromUri] PagingQueryString pagingQueryString
                                     , [FromUri] string searchTerm = "", [FromUri] string sortItem = ""
                                     , [FromUri] string sortOrder  = "")
        {
            var shifts = _shiftService.Get(searchTerm, sortItem, sortOrder
                                           , pagingQueryString);

            return(Ok(shifts));
        }
 public ActionResult <Shift> GetCgiShift(int id)
 {
     try
     {
         return(Ok(_shiftService.Get(id)));
     }
     catch (Exception e)
     {
         return(BadRequest(new { message = e.Message }));
     }
 }