Example #1
0
 public ActionResult Create(SkillsExpEdu skillsexpedu)
 {
     if (ModelState.IsValid) {
         skillsexpeduRepository.InsertOrUpdate(skillsexpedu);
         skillsexpeduRepository.Save();
         return RedirectToAction("Index");
     } else {
         ViewBag.PossibleSkillsExpEduCategories = skillsexpeducategoryRepository.All;
         return View(skillsexpedu);
     }
 }
Example #2
0
 public ViewResult Search(SkillsExpEdu searchSkillsExpEdu)
 {
     if(searchSkillsExpEdu!=null)
     {
                     }
                 return View("Index",skillsexpeduRepository.AllIncluding(skillsexpedu => skillsexpedu.SkillsExpEduCategory));
 }
Example #3
0
 public ActionResult Create()
 {
     SkillsExpEdu skillsexpedu = new SkillsExpEdu();
     ViewBag.PossibleSkillsExpEduCategories = skillsexpeducategoryRepository.All;
     return View(skillsexpedu);
 }
Example #4
0
 public void InsertOrUpdate(SkillsExpEdu skillsexpedu)
 {
     if (skillsexpedu.SkillsExpEduID == default(int)) {
         // New entity
         context.SkillsExpEdu.Add(skillsexpedu);
     } else {
         // Existing entity
         context.Entry(skillsexpedu).State = EntityState.Modified;
     }
 }