/// <summary> /// Initializes a new instance of the <see cref="AnimalController"/> class. /// </summary> /// <param name="animalService"></param> public AnimalController(IAnimalService animalService, ILodgingService lodgingService, IStayService stayService, IWebHostEnvironment hostEnvironment) { _animalService = animalService; _lodgingService = lodgingService; _stayService = stayService; _hostEnvironment = hostEnvironment; }
public AdoptionController(IAnimalService animalService, IUserService userService, IStayService stayService, UserManager <ApplicationUser> userManager) { _animalService = animalService; _userService = userService; _stayService = stayService; _userManager = userManager; }
/// <summary> /// Initializes a new instance of the <see cref="CommentController"/> class. /// </summary> /// <param name="commentService"></param> /// <param name="stayService"></param> /// <param name="animalService"></param> public CommentController(ICommentService commentService, IStayService stayService, IAnimalService animalService, UserManager <ApplicationUser> userManager) { _commentService = commentService; _animalService = animalService; _stayService = stayService; _userManager = userManager; }
/// <summary> /// Initializes a new instance of the <see cref="TreatmentController"/> class. /// </summary> /// <param name="treatmentRepository"></param> public TreatmentController(ITreatmentService treatmentService, IStayService stayService, IAnimalService animalService, ILodgingService lodgingService, UserManager <ApplicationUser> userManager) { _treatmentService = treatmentService; _animalService = animalService; _stayService = stayService; _lodgingService = lodgingService; _userManager = userManager; }
public StayController(IStayService stayService) { _stayService = stayService; }
/// <summary> /// Initializes a new instance of the <see cref="StayController"/> class. /// </summary> /// <param name="stayRepository"></param> public StayController(IStayService stayService, IAnimalService animalService, ILodgingService lodgingService) { _stayService = stayService; _animalService = animalService; _lodgingService = lodgingService; }
/// <summary> /// Initializes a new instance of the <see cref="CommentService"/> class. /// </summary> /// <param name="commentRepository">Commentrepository.</param> public CommentService(ICommentRepository commentRepository, IAnimalRepository animalRepository, IStayService stayService) { _commentRepository = commentRepository; _animalRepository = animalRepository; _stayService = stayService; }
public StayController(IStayService stayService, ApplicationDbContext context, IAnimalService animalService) { _stayService = stayService; _animalService = animalService; _context = context; }