Exemplo n.º 1
0
        public PersonsInsertModule(IPersonRepository personRepository, ILogger logger, IAgeComputingFactory ageComputingFactory) : base("api/v1/")
        {
            _personRepository    = personRepository;
            _logger              = logger;
            _ageComputingFactory = ageComputingFactory;

            Post("/persons", InsertPerson);
        }
Exemplo n.º 2
0
        public PersonsModule(IPersonRepository personRepository, ILogger logger, IAgeComputingFactory ageComputingFactory) : base("/api/v1/")
        {
            _personRepository    = personRepository;
            _logger              = logger;
            _ageComputingFactory = ageComputingFactory;

            Get("/persons/{id:guid}", GetPerson);
        }