Esempio n. 1
0
        public IActionResult Get([FromServices] IPersonCommandRepository repository, [FromQuery] Guid id)
        {
            _logger.LogInformation("Hi");
            Person person = repository.Get(BusinessId.FromGuid(id));

            return(Ok(new
            {
                FirstName = person.FirstName,
                LastName = person.LastName,
                Id = person.Id.Value
            }));
        }
Esempio n. 2
0
 public CreatePersonCommandHandler(ZaminServices zaminServices, IPersonCommandRepository personRepository) : base(zaminServices)
 {
     _personRepository = personRepository;
 }
Esempio n. 3
0
 public CreatePersonCommandHandler(IPersonCommandRepository commandRepository)
 {
     _commandRepository = commandRepository;
 }
Esempio n. 4
0
 public CreateNewPersonCommandHandler(IPersonCommandRepository personCommandRepository)
 {
     this.personCommandRepository = personCommandRepository;
 }