示例#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
            }));
        }
示例#2
0
 public CreatePersonCommandHandler(ZaminServices zaminServices, IPersonCommandRepository personRepository) : base(zaminServices)
 {
     _personRepository = personRepository;
 }
示例#3
0
 public CreatePersonCommandHandler(IPersonCommandRepository commandRepository)
 {
     _commandRepository = commandRepository;
 }
示例#4
0
 public CreateNewPersonCommandHandler(IPersonCommandRepository personCommandRepository)
 {
     this.personCommandRepository = personCommandRepository;
 }