public ActionResult Delete(int id, [BindNever] IFormCollection collection) { try { RepoPers.DeletePeopleByStoreId(id); RepoItem.DeleteItemByStoreId(id); RepoStore.DeleteStoreById(id); RepoStore.Save(); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }