コード例 #1
0
        public ActionResult Create([Bind(Include = "Id,Title")] Feature feature)
        {
            if (ModelState.IsValid)
            {
                _repo.Add(feature);
                return(RedirectToAction("Index"));
            }

            return(View(feature));
        }
コード例 #2
0
 public void AddFeatures(Features feature)
 {
     _featuresRepository.Add(feature);
 }