public ModelToModel GetAll() { ModelToModel mm; mm = new ModelToModel(); mm.cities = new List<City>(); using (BookMarketDbContext db = new BookMarketDbContext()) { foreach (var entry in db.GetAllCities()) mm.cities.Add(entry); } return mm; }