public HttpResponseMessage Put([FromBody] SystemRol systemRol) { try { DbLibrary dbLibrary = new DbLibrary(); BO_SystemRol boSystemRol = new BO_SystemRol(dbLibrary); DataMessage dataMessage = new DataMessage(boSystemRol.Update(systemRol)); return(Request.CreateResponse(HttpStatusCode.OK, dataMessage)); } catch (Exception e) { ErrorMessage mensaje = new ErrorMessage("2.1", "Excepción en la actualización del rol: " + e.GetBaseException().Message, e.ToString()); return(Request.CreateResponse(HttpStatusCode.BadRequest, mensaje)); } }