コード例 #1
0
            public async Task <Unit> Handle(Elimina request, CancellationToken cancellationToken)
            {
                var result = await _instructorRepository.DeleteInstruc(request.Id);

                if (result > 0)
                {
                    return(Unit.Value);
                }

                throw new Exception("No se pudo eliminar");
            }