Example #1
0
        // GET: SorteioParticipantes
        public ActionResult Participar(int idSorteio, int idUsuario)
        {
            var response = _sorteioParticipanteAppService.Participar(idSorteio, idUsuario);

            if (!response.IsSuccessStatusCode)
            {
                return(ErrorMessage("Erro ao ativar participante, tente novamente"));
            }

            return(Json("Sucesso, participante incluido com sucesso!", JsonRequestBehavior.AllowGet));
        }