Exemplo n.º 1
0
        public async Task <ActionResult <Vote> > PostAsync(Vote entity)
        {
            var k      = new AddGeneric <Vote>(entity);
            var result = await _mediator.Send(k);

            return(Ok(result));
        }
Exemplo n.º 2
0
        public async Task <ActionResult <Demande_information> > PostAsync(Demande_information entity)
        {
            var k      = new AddGeneric <Demande_information>(entity);
            var result = await _mediator.Send(k);

            return(Ok(result));
        }
Exemplo n.º 3
0
        public async Task <ActionResult <sous_categorie> > PostAsync(sous_categorie entity)
        {
            var k      = new AddGeneric <sous_categorie>(entity);
            var result = await _mediator.Send(k);

            return(Ok(result));
        }
Exemplo n.º 4
0
        public Task <string> Handle(AddGeneric <T> request, CancellationToken cancellationToken)
        {
            var result = repository.Add(request.Obj);

            return(Task.FromResult(result));
        }