示例#1
0
 public AdminController(ICRUDRepository <Post> postRepository,
                        ICRDRepository <Yummy_Post> yummy_PostRepository,
                        ICRDRepository <Ingredient> ingredientRepository,
                        AppUserManager appUserManager,
                        IWebHostEnvironment webHostEnvironment)
 {
     _postRepository            = postRepository;
     _yummy_PostRepository      = yummy_PostRepository;
     _ingredientRepository      = ingredientRepository;
     _appUserManager            = appUserManager;
     _ingredientPhotoFolderPath = webHostEnvironment.ContentRootPath + @"\wwwroot\Photos\IngredientPhotos\";
 }
示例#2
0
 public UserController(AppUserManager appUserManager,
                       ICRUDRepository <Post> postRepository,
                       ICRDRepository <User_Follows> user_FollowsRepository,
                       ICRDRepository <Notification> notificationRepository,
                       ICRDRepository <Yummy_Post> yummy_PostRepository,
                       ICRDRepository <Comment> commentRepository,
                       ICRDRepository <Ingredient> ingredientRepository,
                       ICRDRepository <Post_Ingredient> post_IngredientRepository,
                       IHttpClientFactory httpClientFactory,
                       IWebHostEnvironment webHostEnvironment)
 {
     _appUserManager            = appUserManager;
     _postRepository            = postRepository;
     _user_FollowsRepository    = user_FollowsRepository;
     _notificationRepository    = notificationRepository;
     _yummy_PostRepository      = yummy_PostRepository;
     _commentRepository         = commentRepository;
     _ingredientRepository      = ingredientRepository;
     _post_IngredientRepository = post_IngredientRepository;
     _httpClientFactory         = httpClientFactory;
     _userPhotoFolderPath       = webHostEnvironment.ContentRootPath + @"\wwwroot\Photos\UserPhotos\";
 }
示例#3
0
 public NavbarViewComponent(ICRDRepository <Notification> notificationRepository, AppUserManager appUserManager)
 {
     _notificationRepository = notificationRepository;
     _appUserManager         = appUserManager;
 }