Esempio n. 1
0
        public ActionResult Edit(E model)
        {
            if (!this.ModelState.IsValid)
            {
                return(View(model));
            }

            BaseRepo <T> repo = SetRepo();
            T            item = repo.GetById(model.Id);;

            PopulateItemEdit(item, model);

            repo.Edit(item);

            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public void Edit(T entity)
 {
     repo.Edit(entity);
 }