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); }
public Task Update(Item item) { const string query = "@update Items set Title = @title, Value = @value where ItemId = @itemId"; return(_commonDb.ExecuteNonQueryAsync(query, item)); }