//[ValidateAntiForgeryToken]
 public IActionResult Create(Blog blog)
 {
     if (ModelState.IsValid)
     {
         _context.Blogs.Add(blog);
         _context.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(blog));
 }
 public IActionResult Create(Product product)
 {
     db.Products.Add(product);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public IActionResult Create(Section section)
 {
     db.Sections.Add(section);
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }