public async Task <IActionResult> UpdateAccount(Account data) { data.SetStringsFromDates(); using (var db = new AppDb()) { await db.Connection.OpenAsync(); var query = new AccountQuery(db); var result = await query.UpdateAccount(data.accountId, data.accountName, data.commence_string, data.cease_string, data.initialBalance); return(new OkResult()); } }