Exemplo n.º 1
0
        public async Task <IEnumerable <LineModel> > GetDestinationLines(int lineId)
        {
            try
            {
                List <InvoiceServiceReference.LineDto> lines = await invoice.GetDestinationLinesAsync(lineId);

                var li = lines.Select(l => l.ToModel()).ToList();
                return(li);
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex.Message);
                return(null);
            }
        }