コード例 #1
0
        public ValidatorResult ValidateCreate(Integration entity)
        {
            var unit = _unitService.GetUnit(entity.UnitId).Result;

            var context = new ValidationContext <Integration>(entity);

            return(context
                   .CommonValidateForWizzard(unit)
                   .Result);
        }