public async Task <bool> Put(string table, string id, [FromBody] IDictionary <string, object> values) { CheckTable(table); var q = GetQueryByPk(table, id); return(await DbAdapter.UpdateAsync(q, values).ConfigureAwait(false) > 0); }
public async Task <int> Edit(Article a) { return(await _DbNRecoAdapter.UpdateAsync( new Query( "Articles", (QField)"Id" == (QConst)a.Id ), a )); }