static void Main(string[] args) { //var dados = new OperationsDataBase().GetPlayersVipById(3); //var dadosLista = new OperationsDataBase().GetPlayersVipAll(); //var dadosExcluirPlayer = new OperationsDataBase().DeletarPlayerVIP(2); var dadosFilter = new OperationsDataBase().GetPlayersVipByFilter( new Common.Filters.PlayersVipFilter { PlayerDataInclusaoSLOTVipInicial = DateTime.Now.AddYears(-10), PlayerDataInclusaoSLOTVipFinal = DateTime.Now.AddYears(1) } ); //var dadosInsert = new OperationsDataBase().InserirPlayerVIP(new Common.PlayersVip //{ // PlayerNome = "Joaquim", // PlayerNick = "master_game_BR", // PlayerAtivo = true, // PlayerEhAdmin = false, // PlayerDataInclusaoSLOTVip = DateTime.Now.AddDays(5), // PlayerDiasVIP = 30 //}); //var dadosuPDATE = new OperationsDataBase().EditarPlayerVIP(new Common.PlayersVip //{ // PlayerNome = "Joaquim Silva", // PlayerNick = "master_game_BR_ups", // PlayerAtivo = true, // PlayerEhAdmin = true, // PlayerDataInclusaoSLOTVip = DateTime.Now.AddDays(90), // PlayerDiasVIP = 365, // PlayerID = 55 //}); }
public AdministracaoPlayersVip BusinessAdministracaoPlayersVip(AdministracaoPlayersVip administracaoPlayersVip) { _operationsDataBase = new OperationsDataBase(); administracaoPlayersVip.AdminPassword = MD5Hash(administracaoPlayersVip.AdminPassword); return(_operationsDataBase.LoginAdministracao(administracaoPlayersVip)); }
public bool BusinessInserirUsuarioSistema(AdministracaoPlayersVip administracaoPlayersVip) { _operationsDataBase = new OperationsDataBase(); administracaoPlayersVip.AdminPassword = MD5Hash(administracaoPlayersVip.AdminPassword); return(_operationsDataBase.InserirUsuarioSistema(administracaoPlayersVip) > 0 ? true : false); }
public bool BusinesAlterarUsuarioSistema(int id, bool ehAdmin) { _operationsDataBase = new OperationsDataBase(); return(_operationsDataBase.AlterarUsuarioSistema(id, ehAdmin) > 0 ? true : false); }
public bool BusinessDeletarUsuarioSistema(int id) { _operationsDataBase = new OperationsDataBase(); return(_operationsDataBase.DeletarUsuarioSistema(id) > 0 ? true : false); }
public List <AdministracaoPlayersVip> BusinessGetUsuariosSistemaAll() { _operationsDataBase = new OperationsDataBase(); return(_operationsDataBase.GetUsuariosSistemaAll()); }
public bool BusinessDeletarPlayerVip(int id) { _operationsDataBase = new OperationsDataBase(); return(_operationsDataBase.DeletarPlayerVip(id) > 0 ? true : false); }
public bool BusinessEditarPlayerVip(PlayersVip playersVip) { _operationsDataBase = new OperationsDataBase(); return(_operationsDataBase.EditarPlayerVip(playersVip) > 0 ? true : false); }
public List <PlayersVip> BusinessGetPlayersVipByFilter(PlayersVipFilter playersVipFilter) { _operationsDataBase = new OperationsDataBase(); return(_operationsDataBase.GetPlayersVipByFilter(playersVipFilter)); }
public List <PlayersVip> BusinessGetPlayersVipAll() { _operationsDataBase = new OperationsDataBase(); return(_operationsDataBase.GetPlayersVipAll()); }
public PlayersVip BusinessGetPlayersVipById(int id) { _operationsDataBase = new OperationsDataBase(); return(_operationsDataBase.GetPlayersVipById(id)); }