public async Task <ActionResult> List(int accountId) { try { Guard.AgainstAccountNumberMismatch(GetAccountIdClaim(), accountId.ToString(), "userClaim.accountId", "accountId"); var batteries = await _batteryService.ListBatteriesAsync(accountId); return(Ok(batteries.ToArray())); } catch (AccountConflictException) { return(Forbid()); } }