示例#1
0
        public async Task <InvoiceProfileDto> AddInvoiceProfile(InvoiceProfileDto invProfDto)
        {
            await _tcContext.InvoiceProfiles.AddRangeAsync(_mapper.Map <InvoiceProfile>(invProfDto));

            if (await SaveContextAsync())
            {
                return(invProfDto);
            }
            else
            {
                return(null);
            }
        }
 public async Task <InvoiceProfileDto> AddInvoiceProfile(InvoiceProfileDto invProfDto)
 {
     return(await _slabRepo.AddInvoiceProfile(invProfDto));
 }