public ActionResult Delete(int id) { Feature f = frep.GetByID(id); if (f != null) { frep.Delete(f); } else { TempData["Hata"] = "Hata Oluştu"; } return(RedirectToAction("List")); }
public void DeleteFeature(int id) { var localFeature = GetFeatureById(id); featureRepo.Delete(localFeature); }