Пример #1
0
 public TroublesController(ITroubleRepository troubleRepository, ITagRepository tagRepository)
 {
     this.troubleRepository = troubleRepository ?? throw new ArgumentNullException(nameof(troubleRepository));
     this.tagRepository     = tagRepository ?? throw new ArgumentNullException(nameof(tagRepository));
 }
Пример #2
0
 /// <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;
 }