public void Delete(SafeAccountChartViewModel model) { var entity = model.ToEntity(); this._safeAccountChartsRepository.Delete(entity); #region Commit Changes this._unitOfWork.Commit(); #endregion }
public SafeAccountChartViewModel Update(SafeAccountChartViewModel model) { this.ThrowExceptionIfExist(model); var entity = model.ToEntity(); entity = this._safeAccountChartsRepository.Update(entity); #region Commit Changes this._unitOfWork.Commit(); #endregion model = entity.ToModel(); return(model); }