...
This commit is contained in:
@@ -65,8 +65,8 @@ namespace Back.Validations
|
||||
RuleFor(r => r.Item2.BranchID)
|
||||
.Custom((model, context) =>
|
||||
{
|
||||
if (!string.IsNullOrEmpty(model) && (model.Length > 10))
|
||||
context.AddFailure("تعداد کارکتر کد شعبه صحبح نمی باشد");
|
||||
if (!string.IsNullOrEmpty(model) && (model.Length !=4))
|
||||
context.AddFailure("مقدار کد شعبه یاید 4عددی باشد");
|
||||
});
|
||||
RuleFor(r => r.Item2.ZipCode)
|
||||
.Custom((model, context) =>
|
||||
|
Reference in New Issue
Block a user