/// <summary> /// Constructor to get an instance of the services required /// </summary> /// <param name="partnerid"></param> public PartneridController(IPartnerid partnerid, IHostingEnvironment hostingEnvironment, IApplicationUser applicationUser, SignInManager <ApplicationUser> signInManager) { _partnerid = partnerid; _hostingEnvironment = hostingEnvironment; _applicationUser = applicationUser; _signInManager = signInManager; // set the images upload path imgUploadPath = Path.Combine(_hostingEnvironment.ContentRootPath, imgUploadPath); }
/// <summary> /// Get the injected service methods /// </summary> /// <param name="leiunurkService"></param> /// <param name="partneridService"></param> public HomeController(ILeiunurk leiunurkService, IPartnerid partneridService, ITehtudTood tehtudToodService) { _leiunurk = leiunurkService; _partnerid = partneridService; _tehtudTood = tehtudToodService; }