public async void Add(Article a) { //dbContext.Articles.Add(a); //await dbContext.SaveChangesAsync(); await _DbNRecoAdapter.InsertAsync("Articles", a); }
public async Task <bool> Post(string table, [FromBody] IDictionary <string, object> values) { CheckTable(table); return(await DbAdapter.InsertAsync(table, values).ConfigureAwait(false) > 0); }