Example #1
0
        private ICollection <InvoiceLabor> InvoiceLaborEntityMapper(IList <InvoiceLaborDTO> invoiceLaborsDTO)
        {
            if (invoiceLaborsDTO != null && invoiceLaborsDTO.Count > 0)
            {
                laborMapper = new InvoiceLaborMapper();

                ICollection <InvoiceLabor> invoiceLabors = new Collection <InvoiceLabor>();
                for (int i = 0; i < invoiceLaborsDTO.Count; i++)
                {
                    invoiceLabors.Add(laborMapper.InvoiceLaborEntityMapper(invoiceLaborsDTO[i]));
                }

                return(invoiceLabors);
            }
            else
            {
                return(null);
            }
        }
Example #2
0
        private InvoiceLaborDTO InvoiceLaborDTOMapper(InvoiceLabor invoiceLabor)
        {
            laborMapper = new InvoiceLaborMapper();

            return(laborMapper.InvoiceLaborDTOMapper(invoiceLabor));
        }