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")); }
public void Edit(T entity) { repo.Edit(entity); }