Sorry, there's nothing at this address.
+

مدیریت صورتحساب ها و ارسال به سامانه مودیان
- -راه حلی برای مدیریت بهتر صورتحساب ها
- -- >();
+ ShowDangerAlert(listerror[0]);
+ }
+
+ SpinnerVisible = !SpinnerVisible;
+ hidden = null;
+ }
+ private async Task SubmitVerificationCode()
+ {
+ hidden = "hidden";
+ SpinnerVisible = !SpinnerVisible;
+ if (!int.TryParse(valueCode, out int code))
+ return;
+
+ VerificationCodeModel.Code = code;
+ if (VerificationCodeModel.Code < 1000 || VerificationCodeModel.Code > 9000)
+ {
+ ShowDangerAlert("کد احراز صحیح نمی باشد");
+ }
+ else
+ {
+ var request = await _hc.PostAsJsonAsync($"Verification/Submit", VerificationCodeModel);
+ if (request.IsSuccessStatusCode)
+ {
+ var status = await request.Content.ReadFromJsonAsync
- >();
+ ShowDangerAlert(listerror[0]);
+ }
+ }
+ SpinnerVisible = !SpinnerVisible;
+ hidden = null;
+ }
+ private void ShowSuccessAlert(string msg)
+ {
+ Hidealert = false;
+ alertColor = AlertColor.Success;
+ alertIconName = IconName.CheckCircleFill;
+ alertMessage = msg;
+ }
+ private void ShowDangerAlert(string msg)
+ {
+ Hidealert = false;
+ alertColor = AlertColor.Danger;
+ alertIconName = IconName.ExclamationTriangleFill;
+ alertMessage = msg;
+ }
+ private async Task EndForm()
+ {
+ if (!successfull)
+ await _hc.DeleteAsync($"Verification/Remove/{VerificationCodeModel?.ID}");
+ if (VerificationCodeModel.Type == "ChangeUserName")
+ nav.NavigateTo("/Profile");
+ nav.NavigateTo("/");
+ }
+ private ToastMessage CreateToastMessage(ToastType toastType, string Message)
+ => new ToastMessage
+ {
+ Type = toastType,
+ Message = Message,
+ };
+}
diff --git a/moadiran/Pages/_Layout.cshtml b/moadiran/Pages/_Layout.cshtml
index b3dd8cd..ec3cfaf 100644
--- a/moadiran/Pages/_Layout.cshtml
+++ b/moadiran/Pages/_Layout.cshtml
@@ -1,7 +1,7 @@
@using Microsoft.AspNetCore.Components.Web
@namespace moadiran.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
-@inject Fixedvalues fv;
+
@@ -31,12 +31,12 @@