// [CustomAuthorization("ReportUploader,ReportCreater", "Create,Delete")] public ActionResult ReportEdit(int id) { var catid = db.ReportMasters.Where(x => x.ReportId == id).Select(x => x.CategoryId).FirstOrDefault(); var z = _ObjReportRepository.EditGetReport(id); var TotalCat = _ObjReportRepository.DDLGetparents(catid); ViewBag.ParentCategory = _ObjReportRepository.GetParent(catid); ViewBag.ChildCategory = _ObjReportRepository.Getchild(catid); ViewBag.ChildOfChild = _ObjReportRepository.GetChilofChild(catid); return(View(z)); }