Exemple #1
0
        public IActionResult LoadFirstStat()
        {
            Statistics stat = new Statistics();

            stat.AmmountOfUsers      = 0;
            stat.LatestRegisterDate  = DateTime.Now;
            stat.LatestRegisterName  = "";
            stat.OrderMoneyMean      = 0;
            stat.TotalNumberOfOrders = 0;
            stat.TotalSalesMoney     = 0;
            stat.UsersMeanMoneySpent = 0;

            _statisticsRepository.CheckIfStatExists(stat);

            return(RedirectToAction("Index", "Home"));
        }