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

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