Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
public ActionResult Visits() { if (IsLoggedOn()) { #region ViewBag List <Visit> visits = visitRepository.GetDormitoryVisits(guardRepository.Read(Session["UserID"]).DormitoryId); List <Guard> guards = guardRepository.GetAll(); ViewBag.Visits = visits; ViewBag.Guards = guards; #endregion return(View()); } return(RedirectToAction("LoginForm", "Main")); }