Example #1
0
 public ActionResult DeleteConfirmed(Guid id)
 {
     Models.AccountBook accountBook = _AccountBookSvc.GetSingle(id);
     _AccountBookSvc.Delete(accountBook);
     _AccountBookSvc.Save();
     return(RedirectToAction("Index"));
 }
        public ActionResult DeleteConfirmed(Guid id)
        {
            AccountBook accountBook = _service.GetSingleAccountBook(id);

            _service.Delete(accountBook);
            _unitOfWork.Commit();
            return(RedirectToAction("Index"));
        }