public ActionResult Blog(BlogModel blog) { return View(blog); }
public ActionResult Blog(BlogModel blog) { _context.Blogs.Add(blog); _context.SaveChangesAsync(); return View("Index"); }
public ActionResult Blog() { var blog = new BlogModel(); return View(blog); }