Beispiel #1
0
        public async Task <Item> Add(Item item)
        {
            const string query = @"insert into Items(ItemId, ParentId, Title, Value) values(@itemId, @parentId, @title, @value)";
            await _commonDb.ExecuteScalarAsync <int>(query, item);

            return(item);
        }