예제 #1
0
 public ActionResult Create(UserAdd model)
 {
     if (ModelState.IsValid)
     {
         superUserRepo = new SuperuserRepo(context, HttpContext.GetOwinContext().GetUserManager<ApplicationUserManager>());
         superUserRepo.Create(model);
         return RedirectToAction("Index");
     }
     return View(model);
 }
예제 #2
0
 // Danh sach Superuser
 public ActionResult Index()
 {
     superUserRepo = new SuperuserRepo();
     return View();
 }