Esempio n. 1
0
        public async Task <IActionResult> GetAllByDesactive([FromServices] INurseRepository repository)
        {
            var result = await repository.GetAllDesactive(false);

            return(Ok(_mapper.Map <IEnumerable <NurseViewModel> >(result)));
        }
Esempio n. 2
0
 public NurseCommandHandler(INurseRepository nurseRepository, IUnitOfWork uow)
 {
     _nurseRepository = nurseRepository;
     _uow             = uow;
 }
Esempio n. 3
0
        public async Task <IActionResult> GetById(Guid id, [FromServices] INurseRepository repository)
        {
            var result = await repository.GetById(id);

            return(Ok(_mapper.Map <NurseViewModel>(result)));
        }
Esempio n. 4
0
        public async Task <IActionResult> GetAllByHospital(Guid id, [FromServices] INurseRepository repository)
        {
            var result = await repository.GetByHospital(id);

            return(Ok(_mapper.Map <IEnumerable <NurseViewModel> >(result)));
        }
Esempio n. 5
0
 public CommandHandlerNurse(INurseRepository nurseRepository)
 {
     _nurseRepository = nurseRepository;
 }
 public NurseRetriever(INurseRepository nurseRepository)
 {
     NurseRepository = nurseRepository;
 }
Esempio n. 7
0
 public NurseService(INurseRepository repository, IUnitOfWork unitOfWork)
 {
     _repository = repository;
     _unitOfWork = unitOfWork;
 }
Esempio n. 8
0
 public NurseService(INurseRepository nurseRepository, IUserRepository userRepository)
 {
     this.nurseRepository = nurseRepository;
     this.userRepository  = userRepository;
 }
Esempio n. 9
0
 public NurseController(INurseRepository repository, INurseCommandHandlerBase handler)
 {
     _repository = repository;
     _handler    = handler;
 }
 public NurseRegistration(INurseRepository nurseRepository)
 {
     NurseRepository = nurseRepository;
 }
Esempio n. 11
0
 public NurseHandler(INurseRepository nurseRepository, IAddressRepositoty addressRepositoty)
 {
     _nurseRepository   = nurseRepository;
     _addressRepositoty = addressRepositoty;
 }