Esempio n. 1
0
        //
        // GET: /Groups/Edit/5

        public PartialViewResult EditIndex(int GroupID)
        {
            if (!AccessActions.IsAccess("Groups::Write"))
            {
                System.Web.Routing.RouteValueDictionary route = new System.Web.Routing.RouteValueDictionary();
                ViewBag.Error = "Нет доступа!";
                return(PartialView("_Error"));
            }

            GroupModel Group = new GroupModel();

            Group = Group.FindOne(GroupID);

            ViewBag.GroupAbonents = Group.Abonents();
            ViewBag.AllAbonents   = Group.AbonentsAll();
            BrancheModel branch = new BrancheModel();

            ViewBag.AllBranches = branch.FindAll();
            return(PartialView("_AbonentsGroupEdit", Group));
        }