Inheritance: Connect.Conference.Core.Models.Sessions.SessionBase
Exemplo n.º 1
0
 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());
 }
Exemplo n.º 2
0
 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());
 }
Exemplo n.º 3
0
 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());
 }
Exemplo n.º 4
0
 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());
 }