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
     //});
 }
Пример #2
0
        public AdministracaoPlayersVip BusinessAdministracaoPlayersVip(AdministracaoPlayersVip administracaoPlayersVip)
        {
            _operationsDataBase = new OperationsDataBase();

            administracaoPlayersVip.AdminPassword = MD5Hash(administracaoPlayersVip.AdminPassword);

            return(_operationsDataBase.LoginAdministracao(administracaoPlayersVip));
        }
Пример #3
0
        public bool BusinessInserirUsuarioSistema(AdministracaoPlayersVip administracaoPlayersVip)
        {
            _operationsDataBase = new OperationsDataBase();

            administracaoPlayersVip.AdminPassword = MD5Hash(administracaoPlayersVip.AdminPassword);

            return(_operationsDataBase.InserirUsuarioSistema(administracaoPlayersVip) > 0 ? true : false);
        }
Пример #4
0
        public bool BusinesAlterarUsuarioSistema(int id, bool ehAdmin)
        {
            _operationsDataBase = new OperationsDataBase();

            return(_operationsDataBase.AlterarUsuarioSistema(id, ehAdmin) > 0 ? true : false);
        }
Пример #5
0
        public bool BusinessDeletarUsuarioSistema(int id)
        {
            _operationsDataBase = new OperationsDataBase();

            return(_operationsDataBase.DeletarUsuarioSistema(id) > 0 ? true : false);
        }
Пример #6
0
        public List <AdministracaoPlayersVip> BusinessGetUsuariosSistemaAll()
        {
            _operationsDataBase = new OperationsDataBase();

            return(_operationsDataBase.GetUsuariosSistemaAll());
        }
Пример #7
0
        public bool BusinessDeletarPlayerVip(int id)
        {
            _operationsDataBase = new OperationsDataBase();

            return(_operationsDataBase.DeletarPlayerVip(id) > 0 ? true : false);
        }
Пример #8
0
        public bool BusinessEditarPlayerVip(PlayersVip playersVip)
        {
            _operationsDataBase = new OperationsDataBase();

            return(_operationsDataBase.EditarPlayerVip(playersVip) > 0 ? true : false);
        }
Пример #9
0
        public List <PlayersVip> BusinessGetPlayersVipByFilter(PlayersVipFilter playersVipFilter)
        {
            _operationsDataBase = new OperationsDataBase();

            return(_operationsDataBase.GetPlayersVipByFilter(playersVipFilter));
        }
Пример #10
0
        public List <PlayersVip> BusinessGetPlayersVipAll()
        {
            _operationsDataBase = new OperationsDataBase();

            return(_operationsDataBase.GetPlayersVipAll());
        }
Пример #11
0
        public PlayersVip BusinessGetPlayersVipById(int id)
        {
            _operationsDataBase = new OperationsDataBase();

            return(_operationsDataBase.GetPlayersVipById(id));
        }