Beispiel #1
0
        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"));
 }
Beispiel #3
0
 public virtual ActionResult Delete(ProductViewModel model)
 {
     _productHandler.Delete(model.Id);
     _productHandler.Commit();
     return(RedirectToAction("Index"));
 }