コード例 #1
0
ファイル: AnimalController.cs プロジェクト: Wouter-J/SSWDI
 /// <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;
 }
コード例 #2
0
ファイル: AdoptionController.cs プロジェクト: Wouter-J/SSWDI
 public AdoptionController(IAnimalService animalService, IUserService userService,
                           IStayService stayService, UserManager <ApplicationUser> userManager)
 {
     _animalService = animalService;
     _userService   = userService;
     _stayService   = stayService;
     _userManager   = userManager;
 }
コード例 #3
0
 /// <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;
 }
コード例 #4
0
ファイル: TreatmentController.cs プロジェクト: Wouter-J/SSWDI
 /// <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;
 }
コード例 #5
0
ファイル: StayController.cs プロジェクト: yogi1916/PatientAPI
 public StayController(IStayService stayService)
 {
     _stayService = stayService;
 }
コード例 #6
0
 /// <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;
 }
コード例 #7
0
 /// <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;
 }
コード例 #8
0
ファイル: StayController.cs プロジェクト: Wouter-J/SSWDI
 public StayController(IStayService stayService, ApplicationDbContext context, IAnimalService animalService)
 {
     _stayService   = stayService;
     _animalService = animalService;
     _context       = context;
 }