public ActionResult Delete(int id = 0) { repository.Delete(repository.GetById(id)); return(RedirectToAction("Index")); }