public static StoreDAO MapToDAO(StoreDTO store) { var s = new StoreDAO(); s.Id = store.Id; s.Address = AddressMapper.MapToDAO(store.Address); s.PhoneNumber = PhoneMapper.MapToDAO(store.PhoneNumber); s.Hours = HoursMapper.MapToDAO(store.Hours); s.Active = store.Active; return(s); }
public static CustomerDAO MapToDAO(CustomerDTO customer) { var c = new CustomerDAO(); c.Id = customer.Id; c.Name = NameMapper.MapToDAO(customer.Name); c.Address = AddressMapper.MapToDAO(customer.Address); c.Email = EmailMapper.MapToDAO(customer.Email); c.Phone = PhoneMapper.MapToDAO(customer.Phone); c.Active = customer.Active; return(c); }