示例#1
0
 public static void MapUpdate(Rate rate, RateDto dto)
 {
     rate.Name         = dto.Name;
     rate.Call         = CallMapper.Map(dto.Call);
     rate.Sms          = SmsMapper.Map(dto.Sms);
     rate.Internet     = InternetMapper.Map(dto.Internet);
     rate.Roaming      = RoamingMapper.Map(dto.Roaming);
     rate.HomeInternet = HomeInternetMapper.Map(dto.HomeInternet);
 }
示例#2
0
 public static Rate Map(RateDto dto)
 {
     return(new Rate
     {
         Id = dto.Id,
         Name = dto.Name,
         Call = CallMapper.Map(dto.Call),
         Sms = SmsMapper.Map(dto.Sms),
         Internet = InternetMapper.Map(dto.Internet),
         Roaming = RoamingMapper.Map(dto.Roaming),
         HomeInternet = HomeInternetMapper.Map(dto.HomeInternet),
     });
 }