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"));
        }
Esempio n. 2
0
        public void DeleteFeature(int id)
        {
            var localFeature = GetFeatureById(id);

            featureRepo.Delete(localFeature);
        }