Hi,
let assume that I have a view that has a model:
Regards,
Leszek
let assume that I have a view that has a model:
@model Portal.Presentation.Models.IUserViewModel
and IUserViewModel: public interface IUserViewModel
{
string FirstName { get; set; }
}
and its validator: public class UserValidator : AbstractValidator<IUserViewModel>
{
public UserValidator()
{
RuleFor(x => x.FirstName)
.NotEmpty().Length(0, 50);
}
}
So the question is if Client-Side can be validated against abstraction?Regards,
Leszek