コード例 #1
0
        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));
        }
コード例 #2
0
 public IEnumerable <CarTrademarkModel> Resolve(CarWorkshopDto source, CarWorkshopModel destination, IEnumerable <CarTrademarkModel> destMember, ResolutionContext context)
 {
     return(Resolve(source));
 }