public IActionResult Delete(long accountId) { try { _accountQueries.DeleteAccount(accountId); return(StatusCode(StatusCodes.Status200OK, AccountAppConstants.AccountDelete)); } catch (Exception ex) { Console.WriteLine(ex.Message); return(StatusCode(StatusCodes.Status500InternalServerError, new ApiStringResponse(ApiConstants.InternalServerError))); } }