private ChannelPackagingDTO Map(tblChannelPackaging tbl)
 {
     var dto = new ChannelPackagingDTO
                   {
                       MasterId = tbl.id,
                       DateCreated = tbl.IM_DateCreated,
                       DateLastUpdated = tbl.IM_DateLastUpdated,
                       StatusId = tbl.IM_Status,
                       IsChecked = tbl.IsChecked,
                       OutletTypeMasterId = tbl.OutletTypeId,
                       ProductPackagingMasterId = tbl.PackagingId,
                      
                   };
     return dto;
 }
 public ChannelPackaging Map(ChannelPackagingDTO dto)
 {
     if (dto == null) return null;
     var channelPackaging = Mapper.Map<ChannelPackagingDTO, ChannelPackaging>(dto);
     channelPackaging.OutletType = _outletTypeRepository.GetById(dto.OutletTypeMasterId);
     channelPackaging.Packaging = _productPackagingRepository.GetById(dto.ProductPackagingMasterId);
     return channelPackaging;
 }