public ActionResult Create(CmProject cmproject)
        {
            if (ModelState.IsValid)
            {
                context.CmProjects.Add(cmproject);
                context.SaveChanges();
                return RedirectToAction("Index");
            }

            ViewBag.PossiblecmCompanies = context.CmCompanies;
            ViewBag.PossibleclCategories = context.ClCategories;
            return View(cmproject);
        }
 public ActionResult Edit(CmProject cmproject)
 {
     if (ModelState.IsValid)
     {
         context.Entry(cmproject).State = EntityState.Modified;
         context.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.PossiblecmCompanies = context.CmCompanies;
     ViewBag.PossibleclCategories = context.ClCategories;
     return View(cmproject);
 }