private RouteCostCentreAllocationDTO Map(tblMasterDataAllocation tbl)
 {
     var dto = new RouteCostCentreAllocationDTO
                   {
                       MasterId = tbl.Id,
                       DateCreated = tbl.IM_DateCreated,
                       DateLastUpdated = tbl.IM_DateLastUpdated,
                       StatusId = tbl.IM_Status,
                       RouteId = tbl.EntityAId,
                       CostCentreId = tbl.EntityBId
                   };
     return dto;
 }
Example #2
0
 public MasterDataAllocation Map(RouteCostCentreAllocationDTO dto)
 {
     if (dto == null) return null;
     var allocation = Mapper.Map<RouteCostCentreAllocationDTO, MasterDataAllocation>(dto);
     allocation.AllocationType = MasterDataAllocationType.RouteCostCentreAllocation;
     return allocation;
 }