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

            featureRepo.Delete(localFeature);
        }