public TroublesController(ITroubleRepository troubleRepository, ITagRepository tagRepository) { this.troubleRepository = troubleRepository ?? throw new ArgumentNullException(nameof(troubleRepository)); this.tagRepository = tagRepository ?? throw new ArgumentNullException(nameof(tagRepository)); }
/// <summary> /// Initializes a new instance of the <see cref="T:API.Controllers.PicturesController"/> class. /// </summary> /// <param name="hostingEnvironment">Hosting environment.</param> public PicturesController(IHostingEnvironment hostingEnvironment, ITroubleRepository troubleRepository) { _hostingEnvironment = hostingEnvironment; _troubleRepository = troubleRepository; }