コード例 #1
0
 public ContinentalForCreateValidation(IContinentalService service)
 {
     _service = service;
     RuleFor(x => x.Name)
     .NotEmpty()
     .MinimumLength(2)
     .MaximumLength(255)
     .Must(UniqueNameField).WithMessage("Continental name field must be unique");
 }
 public ContinentalsController(IContinentalService continentalService, IMapper mapper) : base(continentalService, mapper)
 {
     _service = continentalService;
 }
コード例 #3
0
 public ContinentalsController(IContinentalService service, ILogger <ContinentalsController> logger)
 {
     _service = service;
     _logger  = logger;
 }