Пример #1
0
 public ActionResult FAdminDeUsers(int id)
 {
     if ((new bizFactionDe()).GetByIsAdmin(id) != FactionDeID && UserCommon.CheckBBSHighAdminRight(AdminType) == false)
         return RedirectToAction("FAdminAlert", new { id = id });
     int deID = int.Parse(Request.QueryString["deid"].ToString());
     bizFaction bf=new bizFaction();
     bizFactionDe bfd = new bizFactionDe();
     bizUsers bu = new bizUsers();
     Faction model = bf.Get(id);
     FactionDe modelDe = bfd.Get(deID);
     List<FactionDe> listDe = bfd.ListByID(id);
     List<Users> listUser = bu.ListByFaction(id, deID);
     ViewData["ID"] = id;
     ViewData["Faction"] = model;
     ViewData["FactionDe"] = modelDe;
     ViewData["listDe"] = listDe;
     return View(listUser);
 }
Пример #2
0
 public ActionResult FAdminDe(int id)
 {
     if ((new bizFactionDe()).GetByIsAdmin(id) != FactionDeID && UserCommon.CheckBBSHighAdminRight(AdminType) == false)
         return RedirectToAction("FAdminAlert", new { id = id });
     bizFaction bf = new bizFaction();
     bizFactionDe bfd = new bizFactionDe();
     Faction model = bf.Get(id);
     List<FactionDe> list = bfd.ListByID(id);
     ViewData["ID"] = id;
     return View(list);
 }