public ActionResult EditCategory(Category model)
        {
            EasyServiceEntities easyServiceEntities = new EasyServiceEntities();

            easyServiceEntities.Entry(model).State = EntityState.Modified;
            easyServiceEntities.SaveChanges();
            return(RedirectToAction("ListCategory"));
        }
Ejemplo n.º 2
0
        public ActionResult EditListing(VendorListing model)
        {
            EasyServiceEntities easyServiceEntities = new EasyServiceEntities();

            easyServiceEntities.Entry(model).State = EntityState.Modified;
            easyServiceEntities.SaveChanges();
            return(RedirectToAction("ViewListing"));
        }