Ejemplo n.º 1
0
 public ActionResult AdminSelf(mvcTestingModel mvcModel, string Search, string AdminName, int adminSelection)
 {
     mvcTestingDB mvcDB = new mvcTestingDB();
     mvcModel.AdminselfList = mvcDB.AllAdminList();
     if ((Search == "adminselfbutton1") && (adminSelection == 0))
     {
         RedirectToAction("AdminSelfDetails", "Home", new { name = AdminName });
         //ViewData["Query0"] = "Zero";
     }
     if ((Search == "adminselfbutton1") && (adminSelection == 1))
     {
         RedirectToAction("AdminSelfDetails", "Home", new { name = AdminName });
         //ViewData["Query1"] = "One";
     }
     return View (mvcModel);
 }
Ejemplo n.º 2
0
 public ActionResult AdminSelf()
 {
     ViewData["Query"] = "load";
     mvcTestingDB mvcDB = new mvcTestingDB();
     mvcTestingModel mvcModel = new mvcTestingModel();
     mvcModel.AdminselfList = mvcDB.AllAdminList();
     return View(mvcModel);
 }