Esempio n. 1
0
        public static void Update(ReferenceModel model)
        {
            var existingModel = _data.Single(m => m.Id == model.Id);

            _data.Remove(existingModel);
            _data.Add(model);
        }
 public ActionResult UpdateReference([ModelBinder(typeof(SubclassingBinder))] ReferenceModel model)
 {
     //process your updates
     //DAL.Update(model);
     //return RedirectToAction("Index");
     return(null);
 }
Esempio n. 3
0
 public static void Update(ReferenceModel model)
 {
     var existingModel = _data.Single(m => m.Id == model.Id);
     _data.Remove(existingModel);
     _data.Add(model);
 }