Пример #1
0
        public PhotoManager(
            IPhotoRepository photoRepository,
            IPhotoGroupRepository photoGroupRepository,
            ILogger <PhotoManager> logger)
        {
            Guard.NotNull(photoRepository, nameof(photoRepository));
            Guard.NotNull(photoGroupRepository, nameof(photoGroupRepository));
            Guard.NotNull(logger, nameof(logger));

            _photoRepository      = photoRepository;
            _photoGroupRepository = photoGroupRepository;
            _logger = logger;
        }
Пример #2
0
 public PhotosController(IPhotoGroupRepository repo)
     : base(repo)
 {
 }
Пример #3
0
 public ModelFactory(HttpRequestMessage message, IPhotoGroupRepository repo)
 {
     _urlHelper = new UrlHelper(message);
     _repo = repo;
 }
Пример #4
0
 public UsersController(IPhotoGroupRepository repo, IPhotoGroupIdentityService identityService)
     : base(repo)
 {
     _identityService = identityService;
 }