public ActionResult New(Post post)
 {
     if (ModelState.IsValid)
     {
         _blogContext.Posts.InsertOnSubmit(post);
         _blogContext.SubmitChanges();
         return RedirectToAction("Index");
     }
     else
     {
         return View(post.ToViewModel());
     }
 }
 partial void UpdatePost(Post instance);
 partial void DeletePost(Post instance);
 partial void InsertPost(Post instance);