예제 #1
0
        public object Add(object item)
        {
            City city = (City)item;

            using (BookMarketDbContext db = new BookMarketDbContext())
            {
                db.AddCity(city.Name);
            }

            return GetAll().cities.Last();
        }