public ActionResult EditCategory(DrugType drugType)
 {
     if (ModelState.IsValid)
     {
         unitOfWork.DrugTypeRepository.Update(drugType);
         unitOfWork.DrugTypeRepository.SaveChanges();
         return RedirectToAction("ListCategory");
     }
     return View(drugType);
 }
 public ActionResult CreateCategory(DrugType category)
 {
     if (ModelState.IsValid)
     {
         category.IsActive = true;
         unitOfWork.DrugTypeRepository.Insert(category);
         unitOfWork.DrugTypeRepository.SaveChanges();
         return RedirectToAction("ListCategory");
     }
     return View(category);
 }