Exemplo n.º 1
0
        public IActionResult Edit(int id)
        {
            var user = GetUser();

            //if (user.RoleId == UserType.SysAdmin)
            //{
            ViewBag.Organization = new OrganBusiness().GetParentNode();
            //}
            //else
            //{
            //    ViewBag.Organization = new OrganBusiness().GetItem(user.OrganId);
            //}

            var model = _business.GetItem(id);

            //ViewBag.Organization = new OrganBusiness().GetItem(model.OrganizationId);

            return(View(model));
        }