public IActionResult VerifyBankAccount(string first, string second) { var tenantID = CookieHandler.GetCurrentUserID(Request.Cookies["AuthToken"]); var tenant = Methods.Methods.GetTenant(tenantID); var deposits = new List <string>(); deposits.Add(first); deposits.Add(second); try { if (StripeService.VerifyBankAccount(tenant, deposits)) { return(Json(new { success = true })); } else { return(Json(new { success = false, error = "Could not verify bank." })); } } catch (Exception ex) { return(Json(new { success = false, error = ex.Message })); } }