Example #1
0
        public ActionResult Index()
        {
            var tasks = UserTasks.GetUserTask(UserID);

            var dashboard = new DashboardSettings
            {
                SiteUsers = IdentityDbContext.Entity.Users.Count(),
                Orders    = Carts.OrdersCount(),
                NewOrders = Carts.NewOrdersCount(),
                //TODO میزان سود محاسبه شود
                Profit = 34500.ToPrice("{0}"),
                Tasks  = tasks
            };

            return(View(dashboard));
        }