예제 #1
0
        public async Task <ServiceResponse <bool> > Excluir(Guid id)
        {
            var sr = new ServiceResponse <bool>();

            try
            {
                sr.Value = await _participanteRepository.Excluir(id);
            }
            catch (Exception ex)
            {
                sr.Sucess = false;
                sr.Messages.Add(ex.Message);
            }
            return(sr);
        }