public ActionResult Create(CmProjectDetail cmprojectdetail)
        {
            if (ModelState.IsValid)
            {
                context.CmProjectDetails.Add(cmprojectdetail);
                context.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.PossiblecmProjects = context.CmProjects;
            ViewBag.PossiblecmStudentSubjects = context.CmStudentSubjects;
            return View(cmprojectdetail);
        }
 public ActionResult Edit(CmProjectDetail cmprojectdetail)
 {
     if (ModelState.IsValid)
     {
         context.Entry(cmprojectdetail).State = EntityState.Modified;
         context.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.PossiblecmProjects = context.CmProjects;
     ViewBag.PossiblecmStudentSubjects = context.CmStudentSubjects;
     return View(cmprojectdetail);
 }