Exemplo n.º 1
0
        public async Task <InvoiceDTO> Get(string invoiceId)
        {
            InvoiceDTO invoiceDTO = null;
            Invoice    invoice    = await _invoiceData.Get(invoiceId);

            if (invoice != null)
            {
                invoiceDTO = _mapper.Map <Invoice, InvoiceDTO>(invoice);
            }
            return(invoiceDTO);
        }