Beispiel #1
0
        public ActionResult Update(Guid id)
        {
            int[] roleList = Session["RoleList"] as int[];
            if (roleList == null || roleList.Except(new int[1] {
                1
            }).Count() != 0)
            {
                return(Redirect(SiteConfig.SiteUrl + "/Home/Index"));
            }
            ShowUser();

            Session["OrgID"] = id;
            Org org = orgService.GetOrgByID(id);

            ViewBag.Org = org;
            return(View());
        }