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