public HttpResponseMessage UpdateRol([FromUri] int id, [FromBody] ActualizarRolRequest request) { var rol = RolesRepository.ConsultarRolByID(id); if (rol == null) { return(Request.CreateResponse(HttpStatusCode.NotFound)); } rol.NameRol = request.NameRol; RolesRepository.ActualizarRol(id, request.NameRol); return(Request.CreateResponse(HttpStatusCode.OK)); }