// 2. *************ADD NEW STUDENT ****************** // GET: Student/Create public ActionResult Create(int?id) { StudentDBHandle sdb = new StudentDBHandle(); var dd = sdb.GetStudent().Find(smodel => smodel.Id == id); //dd.IsMovie = (dd.IsMovie == false) ? false : dd.IsMovie; //dd.IsCricket = (dd.IsCricket == false) ? false : dd.IsCricket; var genList = sdb.GenList().ToList(); ViewBag.GenList = new SelectList(genList, "Id", "Name"); return(View(dd)); // return View(sdb.GetStudent().Find(smodel => smodel.Id == id)); }