Exemple #1
0
 public ActionResult Create(PostViewModel post)
 {
     if (post.Message == null || post.Equals(""))
     {
         return(HttpNotFound());
     }
     else
     {
         _postService.Add(ModelConvertor.ViewModelToModel(post));
         return(RedirectToAction("Index"));
     }
 }