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); } }
private InvoiceLaborDTO InvoiceLaborDTOMapper(InvoiceLabor invoiceLabor) { laborMapper = new InvoiceLaborMapper(); return(laborMapper.InvoiceLaborDTOMapper(invoiceLabor)); }