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