public IActionResult Add() { var sysObject = new SysObjectDto(); var vmModel = new SysObjectViewModel { SysObject = sysObject, AllPermissions = GetAllObjectPermissions() }; return(View("_AddModal", vmModel)); }
public IActionResult Add(string parentKey = "") { var sysObject = new SysObjectDto(); var vmModel = new SysObjectViewModel { SysObject = sysObject, AllPermissions = GetAllObjectPermissions() }; ViewBag.ParentKey = parentKey; return(View("_AddModal", vmModel)); }
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)); }