+ {
+ public ContactFormValidator()
+ {
+ RuleFor(x => x.FirstName).NotEmpty().WithMessage("نام الزامی است");
+ RuleFor(x => x.LastName).NotEmpty().WithMessage("نام خانوادگی الزامی است");
+ RuleFor(x => x.Email).NotEmpty().EmailAddress().WithMessage("ایمیل معتبر نیست");
+ RuleFor(x => x.Subject).NotEmpty().WithMessage("انتخاب موضوع الزامی است");
+ RuleFor(x => x.Message).NotEmpty().MinimumLength(10).WithMessage("پیام باید حداقل ۱۰ کاراکتر باشد");
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/FrontOffice.Main/Shared/MainLayout.razor b/src/FrontOffice.Main/Shared/MainLayout.razor
index 28a23a9..01195f8 100644
--- a/src/FrontOffice.Main/Shared/MainLayout.razor
+++ b/src/FrontOffice.Main/Shared/MainLayout.razor
@@ -37,7 +37,7 @@
سوالات متداول
درباره ما
- ارتباط با ما
+ ارتباط با ما
@@ -64,7 +64,7 @@
سوالات متداول
درباره ما
- ارتباط
+ ارتباط با ما
@if (_isAuthenticated)
diff --git a/src/FrontOffice.Main/Utilities/RouteConstants.cs b/src/FrontOffice.Main/Utilities/RouteConstants.cs
index 22d2db4..05ee293 100644
--- a/src/FrontOffice.Main/Utilities/RouteConstants.cs
+++ b/src/FrontOffice.Main/Utilities/RouteConstants.cs
@@ -32,4 +32,9 @@ public static class RouteConstants
{
public const string Index = "/faq";
}
+
+ public static class Contact
+ {
+ public const string Index = "/contact";
+ }
}