public Task <string> GetTaxCashCode(NodeEnum.TaxType taxType) { return(Task.Run(() => { try { return _context.Cash_tbTaxTypes.Where(t => t.TaxTypeCode == (short)taxType).Select(t => t.CashCode).ToString(); } catch (Exception e) { _context.ErrorLog(e); return string.Empty; } })); }
public async Task <bool> AdjustTax(DateTime startOn, NodeEnum.TaxType taxType, double taxAdjustment) => await _context.AdjustTax(startOn, taxType, taxAdjustment);