public ActionResult ComposeAnnouncement(AnnouncementModel model)
        {
            AnnouncementRepository repository = new AnnouncementRepository();
            repository.AddAnnouncement(User.Identity.Name, model.title, model.body);

            return RedirectToAction("SendAnnouncement");
        }
Example #2
0
 public Course()
 {
     Assignments = new List<Assignment>();
     Announcement = new AnnouncementModel();
 }
Example #3
0
 public Course()
 {
     Assignments  = new List <Assignment>();
     Announcement = new AnnouncementModel();
 }