コード例 #1
0
        //Inserts item into the database and returns the inserted Item
        //Returns null if unsuccessful
        public Item InsertItem(Item item)
        {
            _itemsAccessor.Insert(item);
            _itemsAccessor.SaveChanges();

            return(item);
        }