public bool Create(Models.City city) { var obj = new DAO.City { Id = city.Id, Name = city.Name, Slog = city.Slog }; return(cityRepository.Create(obj)); }
public City CreateCity(DAO.City city) { return(new City() { Id = city.Id, CityName = city.CityName, CountryId = city.CountryId, LastUpdate = city.LastUpdate, Addresses = city.Addresses == null ? new List <Address>() : city.Addresses.Select(b => addressFactory.CreateAddress(b)).ToList() }); }
public DeliveryResult(DAO.City city) { }
public DeliveryResult GetAll(int cityId, int number_of_days_to_get) { DAO.City cityDeliveries = deliveryRepository.GetAll(cityId, number_of_days_to_get); return(new DeliveryResult(cityDeliveries)); }