Esempio n. 1
0
        public async Task <ActionResult <string> > Put(Categorie cat)
        {
            var comm   = new UpdateCommandGeneric <Categorie>(cat);
            var result = await _mediator.Send(comm);

            return(Ok(result));
        }
Esempio n. 2
0
        public async Task <ActionResult <string> > Put(DemandeInformation de)
        {
            var comm   = new UpdateCommandGeneric <DemandeInformation>(de);
            var result = await _mediator.Send(comm);

            return(Ok(result));
        }
Esempio n. 3
0
        public async Task <ActionResult <string> > Put(Vote cv)
        {
            var comm   = new UpdateCommandGeneric <Vote>(cv);
            var result = await _mediator.Send(comm);

            return(Ok(result));
        }
Esempio n. 4
0
        public Task <string> Handle(UpdateCommandGeneric <TEntity> request, CancellationToken cancellationToken)
        {
            var result = _dataRepository.Update(request.entity);

            return(Task.FromResult(result));
        }