public UserController(IAdService servAd, IKindService servKind, ILocationService servLocation, ITagService servTag) { adService = servAd; kindService = servKind; locationService = servLocation; tagService = servTag; }
public KindsController(IKindService kindService, DataContext context, IMapper mapper, IHttpContextAccessor httpContextAccessor) { _kindService = kindService; _httpContextAccessor = httpContextAccessor; _mapper = mapper; _context = context; }
public ManageController(IUserService servU, IAdService servA, IKindService servK, ICategoryService servC, ILocationService servL, IImageService servI, ITagService servT) { userService = servU; adService = servA; kindService = servK; categoryService = servC; locationService = servL; imageService = servI; tagService = servT; }
public AnimalController( IAnimalService animalService, ICageService cageService, IKindService kindService, IEmployeService employeService) { this.animalService = animalService; this.cageService = cageService; this.kindService = kindService; this.employeService = employeService; }
public AddVideoRequestValidator(IGenreService genreService, IKindService kindService) { this._genreService = genreService; this._kindService = kindService; RuleFor(x => x.AltTitle).NotEmpty().MaximumLength(150); RuleFor(x => x.Description).MaximumLength(1000).When(x => x.Description != null); RuleFor(x => x.Duration).InclusiveBetween(0, 65535).When(x => x.Duration != null); RuleFor(x => x.Episode).InclusiveBetween(0, 65535).When(x => x.Episode != null); RuleFor(x => x.GenreId) .NotEmpty() .MustAsync(GenreExists).WithMessage("Genre must exists."); RuleFor(x => x.KindId) .NotEmpty() .MustAsync(KindExists).WithMessage("Kind must exists."); //RuleFor(x => x.ReleaseYear); RuleFor(x => x.Season).InclusiveBetween(0, 65535).When(x => x.Season != null); RuleFor(x => x.Title).NotEmpty().MaximumLength(100); }
public KindController(IKindService kindService) { _kindService = kindService; }
public SettingController(IKindService kindService, ISettingService settingService) { _kindService = kindService; _settingService = settingService; }
/// <summary> /// Initializes a new Instance of <see cref="KindController"/> /// </summary> /// <param name="service">Injected <see cref="IKindService"/></param> public KindController(IKindService service) => Service = service;
public KindExistsFilterImpl(IKindService kindService) { this.KindService = kindService; }
public KindController(IKindService kindService) { this.kindService = kindService; }