Esempio n. 1
0
 public async Task <JsonResult> GetCustomers(int countPerPage, int currPage)
 {
     return(Json(new {
         Users = await YummyOnlineManager.GetUsers(Role.Customer, countPerPage, currPage, true),
         Count = await YummyOnlineManager.GetUserCount(Role.Customer)
     }));
 }
Esempio n. 2
0
        public async Task <ActionResult> _ViewDashBoard()
        {
            ViewBag.DiskFreeSpace = DriveSpace.GetHardDiskFreeSpace();
            ViewBag.DiskSpace     = DriveSpace.GetHardDiskSpace();
            ViewBag.HotelCount    = await YummyOnlineManager.GetHotelCount();

            int userCount = 0;

            userCount += await YummyOnlineManager.GetUserCount(Role.Customer);

            userCount += await YummyOnlineManager.GetUserCount(Role.Nemo);

            ViewBag.UserCount = userCount;
            ViewBag.DineCount = await YummyOnlineManager.GetDineCount();

            return(View());
        }