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