public ActionResult Create(Category category)
 {
     if (category != null)
     {
         _categoryRepository.Add(category);
         return RedirectToAction("List");
     }
     else
         return View(category);
 }
 public ActionResult Edit(Category category)
 {
     _categoryRepository.Update(category);
     return RedirectToAction("List");
 }
 public ActionResult Edit(int Id)
 {
     Category cat = new Category();
     cat = _categoryRepository.GetCategoryById(Id);
     return View(cat);
 }