예제 #1
0
 public ActionResult Create(Post post) {
     if (ModelState.IsValid) {
         _repo.Add(post);
         return RedirectToAction("Index");
     } else {
         return View();
     }
 }
예제 #2
0
 public DeletePostWindow(Post p )
 {
     InitializeComponent();
     post = p;
 }
예제 #3
0
 public void UpdatePost(Post post)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public List<UserFeedback> GetUserFeedback(Post post)
 {
     throw new NotImplementedException();
 }
예제 #5
0
 public void Delete(Post post)
 {
     throw new NotImplementedException();
 }
예제 #6
0
 public AddCommentWindow(Post p )
 {
     InitializeComponent();
     post = p;
 }