I have this class
using System.ComponentModel.DataAnnotations; using Argussoft.BI.DAL.Domain.Users; namespace Argussoft.BI.DAL.DTOs.UserDTOs { public cl
This can replace the MaxLength and the MinLength
[StringLength(40, MinimumLength = 10 , ErrorMessage = "Password cannot be longer than 40 characters and less than 10 characters")]