Example #1
0
        public ActionResult DeletarParticipante(int idSorteio, int idUsuario)
        {
            var response = _sorteioParticipanteAppService.DeletarParticipantesSorteio(idSorteio, idUsuario);

            if (!response.IsSuccessStatusCode)
            {
                return(ErrorMessage("Erro ao alterar o usuario"));
            }
            return(Json("Sucesso, participante excluido com sucesso!", JsonRequestBehavior.AllowGet));
        }