コード例 #1
0
        public ActionResult ComposeAnnouncement(AnnouncementModel model)
        {
            AnnouncementRepository repository = new AnnouncementRepository();
            repository.AddAnnouncement(User.Identity.Name, model.title, model.body);

            return RedirectToAction("SendAnnouncement");
        }
コード例 #2
0
ファイル: CourseModels.cs プロジェクト: JamesPeck/Savnac
 public Course()
 {
     Assignments = new List<Assignment>();
     Announcement = new AnnouncementModel();
 }
コード例 #3
0
 public Course()
 {
     Assignments  = new List <Assignment>();
     Announcement = new AnnouncementModel();
 }