public ActionResult Edit(CorredoresModel corredor) { Corredores.AtualizaCorredor(corredor); List<CorredoresModel> corredores = Corredores.RecuperaCorredores(); return View("Index", corredores); }
public static void CadastraCorredor(CorredoresModel corredor) { string json = JsonConvert.SerializeObject(corredor); var cliente = new WebClient(); var url = "http://54.94.187.233/senairunner/rest//runners"; cliente.UploadString(url, "POST", json); }
public ActionResult Create(CorredoresModel corredor) { Corredores.CadastraCorredor(corredor); List<CorredoresModel> corredores = Corredores.RecuperaCorredores(); return View("Index", corredores); }