예제 #1
0
        public IActionResult Add()
        {
            var sysObject = new SysObjectDto();
            var vmModel   = new SysObjectViewModel
            {
                SysObject      = sysObject,
                AllPermissions = GetAllObjectPermissions()
            };

            return(View("_AddModal", vmModel));
        }
예제 #2
0
        public IActionResult Add(string parentKey = "")
        {
            var sysObject = new SysObjectDto();
            var vmModel   = new SysObjectViewModel
            {
                SysObject      = sysObject,
                AllPermissions = GetAllObjectPermissions()
            };

            ViewBag.ParentKey = parentKey;
            return(View("_AddModal", vmModel));
        }
예제 #3
0
        public IActionResult Edit(int id)
        {
            var sysObject = _sysObjectAppService.Get(new EntityDto <int> {
                Id = id
            });
            var vmModel = new SysObjectViewModel
            {
                SysObject      = sysObject,
                AllPermissions = GetAllObjectPermissions()
            };

            return(View("_EditModal", vmModel));
        }