public ActionResult Edit(critereModels e, FormCollection collection) { HttpClient Client = new HttpClient(); var response = Client.PutAsJsonAsync <critereModels>("http://localhost:9080/projetintegre-web/rest/critere", e).Result; return(RedirectToAction("Index")); }
public ActionResult Create(critereModels e, evaluationModels v) { HttpClient Client = new HttpClient(); var response = Client.PostAsJsonAsync <critereModels>("http://localhost:9080/projetintegre-web/rest/critere/", e).Result; //var response = Client.PutAsJsonAsync<evaluationModels>("http://localhost:9080/projetintegre-web/rest/critere/",v,"/",e).Result; // var response1 = Client.PostAsJsonAsync<critereModels>("http://localhost:9080/projetintegre-web/rest/evaluation/"+3+"/"+1,e).Result; return(RedirectToAction("Index")); }