コード例 #1
0
        public ValidatorResult ValidateCreate(Dashboard entity)
        {
            var context = new ValidationContext <Dashboard>(entity);

            return(context
                   .CommonValidation()
                   .ValidateIdNotAllowed()
                   .Result);
        }
コード例 #2
0
        public ValidatorResult ValidateUpdate(Dashboard entity)
        {
            var context = new ValidationContext <Dashboard>(entity);

            return(context
                   .CommonValidation()
                   .ValidateIdProvided()
                   .Result);
        }