MvcTemplate.Validators.AccountValidator.CanCreate C# (CSharp) 메소드

CanCreate() 공개 메소드

public CanCreate ( AccountCreateView view ) : System.Boolean
view MvcTemplate.Objects.AccountCreateView
리턴 System.Boolean
        public Boolean CanCreate(AccountCreateView view)
        {
            Boolean isValid = IsUniqueUsername(view.Id, view.Username);
            isValid &= IsUniqueEmail(view.Id, view.Email);
            isValid &= ModelState.IsValid;

            return isValid;
        }
        public Boolean CanEdit(AccountEditView view)