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; }
public ContinentalsController(IContinentalService service, ILogger <ContinentalsController> logger) { _service = service; _logger = logger; }