Example #1
0
        public async Task <GlobalItem> Add(GlobalItem item)
        {
            const string query = "insert into GlobalItem(ParentId, ItemId) values(@parentId, @itemId)";
            await _commonDb.ExecuteNonQueryAsync(query, item);

            return(item);
        }
Example #2
0
        public Task Update(Item item)
        {
            const string query = "@update Items set Title = @title, Value = @value where ItemId = @itemId";

            return(_commonDb.ExecuteNonQueryAsync(query, item));
        }