public ActionResult Edit(int conferenceId, int sessionId) { var session = _repository.GetSession(conferenceId, sessionId); if (session == null) { session = new Session() { ConferenceId = conferenceId }; } DotNetNuke.Framework.ServicesFramework.Instance.RequestAjaxAntiForgerySupport(); return View(session.GetSessionBase()); }
public ActionResult Submit(int conferenceId, int sessionId) { var session = _repository.GetSession(conferenceId, sessionId); if (session == null) { session = new Session() { ConferenceId = conferenceId }; } else { if (!session.UserIsAuthor(User.UserID)) { ConferenceModuleContext.ThrowAccessViolation(); } } DotNetNuke.Framework.ServicesFramework.Instance.RequestAjaxAntiForgerySupport(); return View(session.GetSessionBase()); }
public ActionResult Submit(int conferenceId, int sessionId) { var session = _repository.GetSession(conferenceId, sessionId); if (session == null) { session = new Session() { ConferenceId = conferenceId }; } else { if (!session.UserIsAuthor(User.UserID)) { ConferenceModuleContext.ThrowAccessViolation(); } } return View(session.GetSessionBase()); }
public ActionResult Edit(int conferenceId, int sessionId) { var session = _repository.GetSession(conferenceId, sessionId); if (session == null) { session = new Session() { ConferenceId = conferenceId }; } return View(session.GetSessionBase()); }