Beispiel #1
0
        public ActionResult Edit(int id, Customer customer)
        {
            try
            {
                using (dbModels dbModel = new dbModels())
                {
                    dbModel.Entry(customer).State = EntityState.Modified;
                    dbModel.SaveChanges();
                }
                // TODO: Add update logic here

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }