private ProducerDTO Map(tblCostCentre tbl)
 {
     var dto = new ProducerDTO
                   {
                       MasterId = tbl.Id,
                       DateCreated = tbl.IM_DateCreated,
                       DateLastUpdated = tbl.IM_DateLastUpdated,
                       StatusId = tbl.IM_Status,
                       Name = tbl.Name,
                       CostCentreCode = tbl.Cost_Centre_Code,
                       ParentCostCentreId = tbl.ParentCostCentreId ?? Guid.Empty,
                       CostCentreTypeId = tbl.CostCentreType ?? 0,
                       VatRegistrationNo = tbl.StandardWH_VatRegistrationNo,
                       Latitude = tbl.StandardWH_Latitude,
                       Longitude = tbl.StandardWH_Longtitude
                   };
     return dto;
 }
Ejemplo n.º 2
0
 public Producer Map(ProducerDTO dto)
 {
     if (dto == null) return null;
     var producer = Mapper.Map<ProducerDTO, Producer>(dto);
     return producer;
 }