public async Task <IList <CharacteristicDescription> > FindAllCharacteristicDescription(
            [FromServices] ICharacteristicDescriptionRepository repository)
        {
            var result = await repository.FindAll();

            return(result);
        }
        public async Task <CharacteristicDescription> FindByIdCharacteristicDescription(
            [FromQuery] int id,
            [FromServices] ICharacteristicDescriptionRepository repository)
        {
            var result = await repository.FindById(id);

            return(result);
        }
Ejemplo n.º 3
0
 public CharacteristicDescriptionHandler(ICudRepository cudRepository, ICharacteristicDescriptionRepository characteristicDescriptionRepository)
 {
     _cudRepository = cudRepository;
     _characteristicDescriptionRepository = characteristicDescriptionRepository;
 }