public ActionResult Edit(InscricaoModel inscricao)
        {
            Inscricoes.AtualizaInscricao(inscricao);

            List<InscricaoModel> inscricoes = Inscricoes.RecuperaInscricoes();

            return View("Index", inscricoes);
        }
        internal static void CadastraInscricao(InscricaoModel inscricao)
        {
            string json = JsonConvert.SerializeObject(inscricao);
            var cliente = new WebClient();
            var url = "http://54.94.187.233/senairunner/rest/runsEntry";

            cliente.UploadString(url, "POST", json);
        }
        public ActionResult Create(InscricaoModel inscricao)
        {
            try
            {
                Inscricoes.CadastraInscricao(inscricao);

                List<InscricaoModel> inscricoes = Inscricoes.RecuperaInscricoes();

                return View("Index", inscricoes);
            }
            catch (Exception e)
            {
                ViewData["Message"] = e.Message;
                return View("Create");
            }
        }