public HttpResponseMessage UpdateTodo([FromUri] int id, [FromBody] ActualizarTodoRequest request) { var toDo = TodosRepository.ConsultarTodoByID(id); if (toDo == null) { return(Request.CreateResponse(HttpStatusCode.NotFound)); } TodosRepository.ActualizarTodo(id, request.Descripcion, request.idStatus, request.idUser, request.Fecha); return(Request.CreateResponse(HttpStatusCode.OK)); }