Exemple #1
0
 /// <summary>
 /// Get an instance of the Leiunurk service.
 /// </summary>
 /// <param name="leiunurk"></param>
 public LeiunurkController(ILeiunurk leiunurk, IHostingEnvironment hostingEnvironment, IApplicationUser applicationUser,
                           SignInManager <ApplicationUser> signInManager)
 {
     _leiunurk           = leiunurk;
     _hostingEnvironment = hostingEnvironment;
     _applicationUser    = applicationUser;
     _signInManager      = signInManager;
     // set the images upload path
     imgUploadPath = Path.Combine(_hostingEnvironment.ContentRootPath, imgUploadPath);
 }
Exemple #2
0
 /// <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;
 }