//Update Organization [Get Request] public ActionResult Update(int?id) { if (id == null) { return(RedirectToAction("Error", "Home")); } Organization Organization = organizationBll.GetById(id); if (Organization == null) { return(RedirectToAction("Error", "Home", null)); } return(View(Organization)); }
public ActionResult Details(int id) { if (Session["AdminData"] == null) { return(RedirectToAction("Login", "Admin")); } else { _orgId = id; Organization organization = _organizationBll.GetById(_orgId); return(View(organization)); } }