public async Task <int> AddAsync(COA_AccountAddModel model) { var account = ChartofaccountFactory.Create(model, _userId); await _repository.AddAsync(account); await _unitOfWork.SaveChangesAsync(); return(account.Id); }
public async Task <int> AddAsync(COA_AccountAddModel model) { var account = ChartofaccountFactory.Create(model, _userId); await _repository.AddAsync(account); await _unitOfWork.SaveChangesAsync(); return(account.Id); }