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