public ActionResult Update(DataStructure.Activity activity) { UnitOfWork.UOW.ActivityRepository.Update(activity); UnitOfWork.UOW.Save(); return(RedirectToAction(nameof(Read))); }
public ActionResult Delete(int id) { DataStructure.Activity activity = UnitOfWork.UOW.ActivityRepository.Delete(id); UnitOfWork.UOW.Save(); return(RedirectToAction(nameof(Read))); }
public ActionResult Update(int id) { DataStructure.Activity activity = UnitOfWork.UOW.ActivityRepository.Update(id); return(View(activity)); }