public ActionResult Create() { ViewBag.RoleList = new SelectList(RoleRepo.All(), "id", "name"); ViewBag.MenuList = new SelectList(MenuRepo.All(), "id", "name"); return(PartialView("_Create")); }
//Edit public ActionResult Edit(int id) { return(PartialView("_Edit", RoleRepo.GetRole(id))); }
public ActionResult Deactive(int id) { return(PartialView("_Deactive", RoleRepo.GetRole(id))); }
// GET: Role public ActionResult Index(string search) { return(View(RoleRepo.All(search))); }
// List public ActionResult List(string search) { return(PartialView("_List", RoleRepo.All(search))); }
public ActionResult Edit(Int32 paramId) { return(PartialView(RoleRepo.GetDetailById(paramId))); }
// GET: Role public ActionResult Index() { RoleRepo roleRepo = new RoleRepo(_context); return(View(roleRepo.GetAllRoles())); }
public UnitTest1() { DB = new APIContext(); u = new UserRepo(DB); r = new RoleRepo(DB); }
public ActionResult RoleList() { return(PartialView("_RoleList", RoleRepo.All(null))); }
// GET: MenuAccess public ActionResult Index() { ViewBag.RoleList = new SelectList(RoleRepo.All(null), "id", "name"); return(View(MenuAccessRepo.All())); }
public RoleController(ApplicationDbContext context) { _context = context; _roleRepo = new RoleRepo(_context); }
public RoleManager() { _roleRepo = new RoleRepo(); }