コード例 #1
0
        public ActionResult Stats()
        {
            var vendors     = AdminService.GetUsersByType("Vendor");
            var contractors = AdminService.GetUsersByType("Contractor");
            var users       = AdminService.GetUsersByType("User");
            var jobs        = JobService.GetAllJobs();

            var cats = CategoryAdminService.GetCategories();

            return(View(new DashboardPageModel
            {
                ContractorCount = contractors.Count,
                UserCount = users.Count,
                VendorsCount = vendors.Count,
                Categories = cats,
                JobsCount = jobs.Count
            }));
        }
コード例 #2
0
 public ActionResult ChnageJobApprovalCats(LocalCategory model)
 {
     CategoryAdminService.ApprovalStatus(model);
     return(Json(true, JsonRequestBehavior.AllowGet));
 }
コード例 #3
0
        public ActionResult Categories()
        {
            var data = CategoryAdminService.GetNotApprovedCategories();

            return(View(data));
        }
コード例 #4
0
 public JsonResult DeleteCat(Category obj)
 {
     CategoryAdminService.DeleteCat(obj);
     return(Json(true, JsonRequestBehavior.AllowGet));
 }
コード例 #5
0
 public JsonResult UpdateStatus(Category obj)
 {
     CategoryAdminService.UpdateStatus(obj);
     return(Json(true, JsonRequestBehavior.AllowGet));
 }
コード例 #6
0
        public JsonResult UpdateCat(Category obj)
        {
            var catId = CategoryAdminService.UpdateCategory(obj);

            return(Json(catId, JsonRequestBehavior.AllowGet));
        }
コード例 #7
0
        public ActionResult ListView()
        {
            var data = CategoryAdminService.GetCategories();

            return(View(data));
        }