コード例 #1
0
ファイル: NurseController.cs プロジェクト: Llimaa/EnferDev
        public async Task <IActionResult> GetAllByDesactive([FromServices] INurseRepository repository)
        {
            var result = await repository.GetAllDesactive(false);

            return(Ok(_mapper.Map <IEnumerable <NurseViewModel> >(result)));
        }
コード例 #2
0
 public NurseCommandHandler(INurseRepository nurseRepository, IUnitOfWork uow)
 {
     _nurseRepository = nurseRepository;
     _uow             = uow;
 }
コード例 #3
0
ファイル: NurseController.cs プロジェクト: Llimaa/EnferDev
        public async Task <IActionResult> GetById(Guid id, [FromServices] INurseRepository repository)
        {
            var result = await repository.GetById(id);

            return(Ok(_mapper.Map <NurseViewModel>(result)));
        }
コード例 #4
0
ファイル: NurseController.cs プロジェクト: Llimaa/EnferDev
        public async Task <IActionResult> GetAllByHospital(Guid id, [FromServices] INurseRepository repository)
        {
            var result = await repository.GetByHospital(id);

            return(Ok(_mapper.Map <IEnumerable <NurseViewModel> >(result)));
        }
コード例 #5
0
 public CommandHandlerNurse(INurseRepository nurseRepository)
 {
     _nurseRepository = nurseRepository;
 }
コード例 #6
0
 public NurseRetriever(INurseRepository nurseRepository)
 {
     NurseRepository = nurseRepository;
 }
コード例 #7
0
 public NurseService(INurseRepository repository, IUnitOfWork unitOfWork)
 {
     _repository = repository;
     _unitOfWork = unitOfWork;
 }
コード例 #8
0
 public NurseService(INurseRepository nurseRepository, IUserRepository userRepository)
 {
     this.nurseRepository = nurseRepository;
     this.userRepository  = userRepository;
 }
コード例 #9
0
 public NurseController(INurseRepository repository, INurseCommandHandlerBase handler)
 {
     _repository = repository;
     _handler    = handler;
 }
コード例 #10
0
 public NurseRegistration(INurseRepository nurseRepository)
 {
     NurseRepository = nurseRepository;
 }
コード例 #11
0
ファイル: NurseHandler.cs プロジェクト: Llimaa/EnferDev
 public NurseHandler(INurseRepository nurseRepository, IAddressRepositoty addressRepositoty)
 {
     _nurseRepository   = nurseRepository;
     _addressRepositoty = addressRepositoty;
 }