public HttpResponseMessage Get(HttpRequestMessage request) { HttpResponseMessage response = null; if (!ModelState.IsValid) { response = request.CreateResponse(HttpStatusCode.BadRequest); } else { var dtoUpdated = proyectoService.GetAll(); response = request.CreateResponse(HttpStatusCode.OK, dtoUpdated); } return(response); }
public IList <ProyectoDTO> Get() { return(Service.GetAll()); }