public static BoardProtocolComponent GetProtocolComponentByProtocolId(string protocolId) { BoardProtocolComponent data = new BoardProtocolComponent(); data.ListProtocolComponents = new ProtocolComponentDal().GetProtocolComponents(protocolId); data.ListUsers = SystemUserDal.GetSystemUserExternal(protocolId); return(data); }
public static MessageCustom DeletedSystemUser(int systemUserId) { MessageCustom msg = new MessageCustom(); bool result = SystemUserDal.DeletedSystemUser(systemUserId); if (!result) { msg.Error = true; msg.Status = (int)HttpStatusCode.BadRequest; msg.Message = "Sucedió un error al eliminar el usuario, por favor vuelva a intentar."; } else { msg.Error = false; msg.Status = (int)HttpStatusCode.OK; msg.Message = "Se eliminó correctamente."; } return(msg); }
public static SystemUserCustom GetSystemUserById(int systemuserId) { return(SystemUserDal.GetSystemUserById(systemuserId)); }