public ActionResult Create(MdlAuditReport objform) { MdlAuditReport model = new MdlAuditReport(); MngAuditReport ObjApp = new MngAuditReport(); if (sig != null) { try { objform.EnteredByUser_ID = sig.UserID; ObjApp.AddNewAuditReport(objform); TempData["td_orgid"] = objform.RenewalReport_ID; return(RedirectToAction("Index")); } catch { model.GetAllOrg_ID = ObjApp.GetAllOrgIDNName(0); //model.GetRenewalReport_ID = ObjApp.GetRenewalReportsofOrg(); return(View(model)); } } else { return(RedirectToAction("Index", "Login")); } }
public ActionResult Index() { List <MdlAuditReport> modellist = new List <MdlAuditReport>(); MngAuditReport obj = new MngAuditReport(); modellist = obj.GetAllAuditReportsofRenewalReport(Convert.ToInt64(TempData["td_orgid"])); return(View(modellist)); }
public ActionResult Create() { MdlAuditReport model = new MdlAuditReport(); MngAuditReport ObjApp = new MngAuditReport(); model.GetAllOrg_ID = ObjApp.GetAllOrgIDNName(0); //model.GetRenewalReport_ID = ObjApp.GetRenewalReportsofOrg(); return(View(model)); }