コード例 #1
0
 public ActionResult Edit([Bind(Include = "Id,Title")] Feature feature)
 {
     if (ModelState.IsValid)
     {
         _repo.Update(feature);
         return(RedirectToAction("Index"));
     }
     return(View(feature));
 }
コード例 #2
0
 public void UpdateFeatures(Features feature)
 {
     _featuresRepository.Update(feature);
 }
コード例 #3
0
 public bool UpdateFeature(Feature toUpdate)
 {
     return(_repository.Update(toUpdate));
 }