public async Task <ActionResult <Vote> > PostAsync(Vote entity) { var k = new AddGeneric <Vote>(entity); var result = await _mediator.Send(k); return(Ok(result)); }
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)); }
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)); }
public Task <string> Handle(AddGeneric <T> request, CancellationToken cancellationToken) { var result = repository.Add(request.Obj); return(Task.FromResult(result)); }