Exemplo n.º 1
0
        public dynamic getAccountEvent()
        {
            try
            {
                string id           = $"{DateTime.Now.Year.ToString("D4")}{DateTime.Now.Month.ToString("D2")}{DateTime.Now.Day.ToString("D2")}{AccountSession.AccountID}";
                var    accountEvent = LuckyDiceEventDAO.getAccountEvent(id);
                if (accountEvent == null)
                {
                    return new
                           {
                               TotalWin  = 0,
                               TotalLose = 0,
                               MaxWin    = 0,
                               MaxLose   = 0
                           }
                }
                ;
                return(accountEvent);
            }
            catch (Exception ex)
            {
                NLogManager.PublishException(ex);
            }

            return(null);
        }