public async Task <IActionResult> GeAll() { using (var db = new AppDb()) { await db.Connection.OpenAsync(); var query = new UserQuery(db); var result = await query.AllAsync(); return(new OkObjectResult(result)); } }