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