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 })); }
public ActionResult ChnageJobApprovalCats(LocalCategory model) { CategoryAdminService.ApprovalStatus(model); return(Json(true, JsonRequestBehavior.AllowGet)); }
public ActionResult Categories() { var data = CategoryAdminService.GetNotApprovedCategories(); return(View(data)); }
public JsonResult DeleteCat(Category obj) { CategoryAdminService.DeleteCat(obj); return(Json(true, JsonRequestBehavior.AllowGet)); }
public JsonResult UpdateStatus(Category obj) { CategoryAdminService.UpdateStatus(obj); return(Json(true, JsonRequestBehavior.AllowGet)); }
public JsonResult UpdateCat(Category obj) { var catId = CategoryAdminService.UpdateCategory(obj); return(Json(catId, JsonRequestBehavior.AllowGet)); }
public ActionResult ListView() { var data = CategoryAdminService.GetCategories(); return(View(data)); }