public void Delete(TViewModel model) { var entity = Mapper.Map <TViewModel, TBaseModel>(model); _service.Delete(entity); _uow.Commit(); }
public virtual ActionResult DeleteConfirmed(int id) { _customerHandler.Delete(id); _customerHandler.Commit(); return(RedirectToAction("Index")); }
public virtual ActionResult Delete(ProductViewModel model) { _productHandler.Delete(model.Id); _productHandler.Commit(); return(RedirectToAction("Index")); }