partial void DeletecontactUs(contactUs instance);
partial void InsertcontactUs(contactUs instance);
partial void UpdatecontactUs(contactUs instance);
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(); }