Esempio n. 1
0
 public HttpResponseMessage GetAll()
 {
     try
     {
         var screenTypes = _screenTypeService.GetAll();
         return(Request.CreateResponse(HttpStatusCode.OK, screenTypes));
     }
     catch (Exception ex)
     {
         return(Request.CreateResponse(HttpStatusCode.BadRequest, ex.Message));
     }
 }
Esempio n. 2
0
 private List <ScreenTypeDto> GetScreenTypes()
 {
     return(_screenTypeService.GetAll().ToList());
 }