public ActionResult Delete(int id, Category category)
 {
     try
     {
         _db.Entry(category).State = System.Data.EntityState.Deleted;
         _db.SaveChanges();
         return RedirectToAction("Index");
     }
     catch
     {
         // TODO Add error display logic here eventually.
         return View();
     }
 }
 public ActionResult Create(Category newCategory)
 {
     try
     {
         _db.Categories.Add(newCategory);
         _db.SaveChanges();
         return RedirectToAction("Index");
     }
     catch
     {
         // TODO Add error display logic here eventually.
         return View();
     }
 }