예제 #1
0
        public IActionResult Delete(string id)
        {
            RoleRepo roleRepo = new RoleRepo(_context);

            return(View(roleRepo.GetRole(id)));
        }
예제 #2
0
 //Edit
 public ActionResult Edit(int id)
 {
     return(PartialView("_Edit", RoleRepo.GetRole(id)));
 }
예제 #3
0
 public ActionResult Deactive(int id)
 {
     return(PartialView("_Deactive", RoleRepo.GetRole(id)));
 }
예제 #4
0
 public int Get(string userId)
 {
     return(_rRepo.GetRole(userId));
 }