public static Business.Infrastructure.Location ConvertLocationFromStoB(Location location) { var locationDto = new Business.Infrastructure.Location { location_number=location.LocNumber, country=location.Country, prefix=location.Prefix, ph_number=location.Phone, timespane=location.Timespane, loc_enabled = location.Enabled }; return locationDto; }
public static Location ConvertLocationFromBtoS(Business.Infrastructure.Location location) { var locationDto = new Location { LocNumber = location.location_number, Country = location.country, Prefix = location.prefix, Phone = location.ph_number, Timespane = location.timespane, Enabled = location.loc_enabled }; return locationDto; }