Ejemplo n.º 1
0
 public PhotosController(IPhoto photoRepo,
                         ICategoryReporitory categoryRepo, IClientNotification clientNotification,
                         IFileManager fileManager, IOptionsSnapshot <PhotoSettings> options)
 {
     _photoRepo          = photoRepo;
     _categoryRepo       = categoryRepo;
     _clientNotification = clientNotification;
     _fileManager        = fileManager;
     _options            = options.Value;
 }
Ejemplo n.º 2
0
 public PostsController(IBlogRepository blogRepository,
                        ICategoryReporitory categoryReporitory,
                        IFileManager fileManager,
                        UserManager <User> userManager,
                        IOptionsSnapshot <PhotoSettings> options,
                        IClientNotification clientNotification)
 {
     _blogRepository     = blogRepository;
     _categoryReporitory = categoryReporitory;
     _fileManager        = fileManager;
     _userManager        = userManager;
     _clientNotification = clientNotification;
     _options            = options.Value;
 }
 public CategoriesController(ICategoryReporitory reporitory, IClientNotification clientNotification, IMemoryCache memoryCache)
 {
     _reporitory         = reporitory;
     _clientNotification = clientNotification;
     _memoryCache        = memoryCache;
 }
Ejemplo n.º 4
0
 public CategoryComponent(ICategoryReporitory repo)
 {
     _repo = repo;
 }
 public AdminCategoryComponent(ICategoryReporitory category)
 {
     _category = category;
 }