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