コード例 #1
0
 partial void DeletecontactUs(contactUs instance);
コード例 #2
0
 partial void InsertcontactUs(contactUs instance);
コード例 #3
0
 partial void UpdatecontactUs(contactUs instance);
コード例 #4
0
        public ActionResult contactUs(contactUs conUs)
        {
            if (ModelState.IsValid)
            {
                //conUs.employerid = Guid.NewGuid();
                //empRegistration.createdDate = DateTime.Now;
                contactUs dbConUs = new contactUs();
                dbConUs.requestId = Guid.NewGuid(); //conUs.requestId;
                dbConUs.name = conUs.name;
                dbConUs.email = conUs.email;
                dbConUs.subject = conUs.subject;
                dbConUs.description = conUs.description;
                dbConUs.createdDate = DateTime.Now;
                dbConUs.modifiedDate = DateTime.Now;
                db2.contactUs.InsertOnSubmit(dbConUs);
                db2.SubmitChanges();

                //return RedirectToAction("../Employer/", new { empid = employerid });
                return RedirectToAction("submitSuccessful");
            }
            return View();
        }