示例#1
0
 public BuildingInstructionController(IBuildingInstructionRepository buildingInstructionRepository,
                                      ICategoryRepository categoryRepository, IWebHostEnvironment webHostingEnvironment,
                                      IFavoritesBuildingInstructionRepository favoritesBuildingInstructionRepository, UserManager <ApplicationUser> userManager,
                                      IRateInstructionRepository rateInstructionRepository)
 {
     _buildingInstructionRepository = buildingInstructionRepository;
     _categoryRepository            = categoryRepository;
     _webHostingEnvironment         = webHostingEnvironment;
     _userManager = userManager;
     _favoritesBuildingInstructionRepository = favoritesBuildingInstructionRepository;
     _rateInstructionRepository = rateInstructionRepository;
 }
 public FavoritesBuildingInstructionController(IFavoritesBuildingInstructionRepository favoritesBuildingInstructionRepository, IBuildingInstructionRepository buildingInstructionRepository, UserManager <ApplicationUser> userManager)
 {
     _favoritesBuildingInstructionRepository = favoritesBuildingInstructionRepository;
     _userManager = userManager;
     _buildingInstructionRepository = buildingInstructionRepository;
 }