public async Task <IActionResult> DeleteAll() { using (var db = new AppDb()) { await db.Connection.OpenAsync(); var query = new MessageQuery(db); await query.DeleteAllAsync(); return(new OkResult()); } }