//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));
        }
Example #2
0
        public ActionResult Details(int id)
        {
            if (Session["AdminData"] == null)
            {
                return(RedirectToAction("Login", "Admin"));
            }
            else
            {
                _orgId = id;
                Organization organization = _organizationBll.GetById(_orgId);

                return(View(organization));
            }
        }