Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public async Task <int> Edit(Article a)
 {
     return(await _DbNRecoAdapter.UpdateAsync(
                new Query(
                    "Articles",
                    (QField)"Id" == (QConst)a.Id
                    ),
                a
                ));
 }