Ejemplo n.º 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);
 }
Ejemplo n.º 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),
     });
 }