public ActionResult Create([Bind(Include = "Id,Title")] Feature feature) { if (ModelState.IsValid) { _repo.Add(feature); return(RedirectToAction("Index")); } return(View(feature)); }
public void AddFeatures(Features feature) { _featuresRepository.Add(feature); }