Ejemplo n.º 1
0
        public ActionResult Update(int id, FormCollection formCollection)
        {
            var model = tbl.CreateFrom(formCollection);

            try
            {
                tbl.Update(model, id);
            }
            catch (Exception x)
            {
                TempData["Error"] = "There was a problem editing this record";
            }


            return(null);
        }