public ActionResult Details(int id) { ClanUser clanUser = HttpContext.GetCurrentLoginInformation(); int clanId = clanUser.clanId != null ? (int)clanUser.clanId : 0; ClanWarViewModel warInfo = new ClanWarViewModel(id, clanId); return View(warInfo); }
// GET: ClanWar public ActionResult Index() { ClanUser clanUser = HttpContext.GetCurrentLoginInformation(); int clanId = clanUser.clanId != null ? (int)clanUser.clanId : 0; ClanWarViewModel clanWarsInfo = new ClanWarViewModel(clanId); return View(clanWarsInfo); }