Пример #1
0
        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
        public async Task <IActionResult> GetById(Guid id, [FromServices] INurseRepository repository)
        {
            var result = await repository.GetById(id);

            return(Ok(_mapper.Map <NurseViewModel>(result)));
        }
Пример #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)));
        }
Пример #5
0
 public CommandHandlerNurse(INurseRepository nurseRepository)
 {
     _nurseRepository = nurseRepository;
 }
 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;
 }
 public NurseRegistration(INurseRepository nurseRepository)
 {
     NurseRepository = nurseRepository;
 }
Пример #11
0
 public NurseHandler(INurseRepository nurseRepository, IAddressRepositoty addressRepositoty)
 {
     _nurseRepository   = nurseRepository;
     _addressRepositoty = addressRepositoty;
 }