public ActionResult Edit(EventCategory eventCategory)
 {
     if (ModelState.IsValid)
     {
         unitOfWork.EventCategoryRepository.Update(eventCategory);
         unitOfWork.Save();
         return RedirectToAction("Index");
     }
     return View(eventCategory);
 }
 public ActionResult Create()
 {
     EventCategory eventCategory = new EventCategory();
     eventCategory.Active = true;
     return View(eventCategory);
 }