public IView Create(string name) { if (!this.HasCurrentUser) { throw new ArgumentException(Errors.UserNotLoggedIn); } if (!this.User.IsInRole(Role.Lecturer)) { throw new AuthorizationFailedException(Errors.UserNotAuthorized); } var course = new Course(name); this.Data.Courses.Add(course); return this.View(course); }
public Create(Course course) : base(course) { }
public AddLecture(Course course) : base(course) { }
public Enroll(Course course) : base(course) { }
public Details(Course course) : base(course) { }