private void CarWorkshopModel2CarWorkshopDtoAfterMap(CarWorkshopModel src, CarWorkshopDto dst) { var address = src.Address; dst.City = address.City; dst.PostalCode = address.PostalCode; dst.Country = address.Country.Name; dst.CarTrademarks = string.Join(CarWorkshopDto.CarTrademarksDelimiter, src.CarTrademarks.Select(o => o.Trademark).OrderBy(o => o)); }
public IEnumerable <CarTrademarkModel> Resolve(CarWorkshopDto source, CarWorkshopModel destination, IEnumerable <CarTrademarkModel> destMember, ResolutionContext context) { return(Resolve(source)); }