示例#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));
     }
 }
示例#2
0
 private List <ScreenTypeDto> GetScreenTypes()
 {
     return(_screenTypeService.GetAll().ToList());
 }