Ejemplo n.º 1
0
        public object Add(object item)
        {
            BookTag bookTag = (BookTag)item;

            using (BookMarketDbContext db = new BookMarketDbContext())
            {
                db.AddBookTag(bookTag.Name, bookTag.BookTypeId);
            }

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