public ActionResult Sitzung(int id) { if (_SessionContext == null) { return(Redirect(FormsAuthentication.LoginUrl)); } var value = UserIniHelper.GetValue(_SessionContext.Shortname, "SIT", "Sitzung", "CanDownloadAll"); ViewBag.CanDownloadAll = !string.IsNullOrEmpty(value) && value == "1"; var model = new SitzungViewModel(_Entities, id, _SessionContext.SysUsrId); //added BenutzerId, 10.2 return(View(model)); }
public ActionResult Sitzung(int id) { var model = new SitzungViewModel(_Entities, id); return(View(model)); }