public async Task <ActionResult> Edit(Cours c) { string course = JsonConvert.SerializeObject(c); string result = await courseBL.EditC(course); if (result == "true") { string Courses = await courseBL.GetCourses(); List <Cours> cust = JsonConvert.DeserializeObject <List <Cours> >(Courses); return(View("Index", cust)); } return(View()); }