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