public async Task <ActionResult <string> > Put(Categorie cat) { var comm = new UpdateCommandGeneric <Categorie>(cat); var result = await _mediator.Send(comm); return(Ok(result)); }
public async Task <ActionResult <string> > Put(DemandeInformation de) { var comm = new UpdateCommandGeneric <DemandeInformation>(de); var result = await _mediator.Send(comm); return(Ok(result)); }
public async Task <ActionResult <string> > Put(Vote cv) { var comm = new UpdateCommandGeneric <Vote>(cv); var result = await _mediator.Send(comm); return(Ok(result)); }
public Task <string> Handle(UpdateCommandGeneric <TEntity> request, CancellationToken cancellationToken) { var result = _dataRepository.Update(request.entity); return(Task.FromResult(result)); }