public void Load(IEnumerable <OfferUnit> units, OfferWrapper offerWrapper, IUnitOfWork unitOfWork, bool isNew) { Load(units, unitOfWork, isNew); _offerWrapper = offerWrapper; if (isNew) { Groups.ForEach(x => x.Offer = offerWrapper); } }
public Offer ApiToDomain(OfferWrapper value) { return(ApiToDomain(value?.Offer)); }
internal static Offer ToDomain(this OfferWrapper value) { return(s_offerMapper.ApiToDomain(value)); }