public HttpResponseMessage Liquidacion(HttpRequestMessage request, [FromBody] SolicitaLiquidacionDto dto) { HttpResponseMessage response = null; if (!ModelState.IsValid) { response = request.CreateResponse(HttpStatusCode.BadRequest); } else { var dtoUpdated = proyectoService.Liquidacion(dto); response = request.CreateResponse(HttpStatusCode.OK, dtoUpdated); } return(response); }