示例#1
0
 public ActionResult Create(Post post) {
     if (ModelState.IsValid) {
         _repo.Add(post);
         return RedirectToAction("Index");
     } else {
         return View();
     }
 }
 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();
 }
 public AddCommentWindow(Post p )
 {
     InitializeComponent();
     post = p;
 }