コード例 #1
0
 partial void DeleteotherSkill(otherSkill instance);
コード例 #2
0
 partial void InsertotherSkill(otherSkill instance);
コード例 #3
0
 partial void UpdateotherSkill(otherSkill instance);
コード例 #4
0
        public ActionResult otherSkill(otherSkill parOtherSkill)
        {
            otherSkill otherSki = (from otherSkis in db2.otherSkills where otherSkis.email == parOtherSkill.email select otherSkis).SingleOrDefault();

            if (otherSki == null)
            {
                parOtherSkill.createdDate = DateTime.Now;
                db2.otherSkills.InsertOnSubmit(parOtherSkill);
                db2.SubmitChanges();
            }
            else
            {
                otherSki.modifiedDate = DateTime.Now;
                otherSki.other = parOtherSkill.other;
                otherSki.language = parOtherSkill.language;
                otherSki.certificate = parOtherSkill.certificate;
                db2.SubmitChanges();
            }

            return RedirectToAction("successfulResume");
        }