public ActionResult Institutions(StudentEducationHistory history) { StudentEducationHistory education = new StudentEducationHistory(); education.From = history.From; education.FromSpecified = true; education.To = history.To; education.ToSpecified = true; education.Instituition = history.Instituition; //education.Qualifications = history.Qualifications; education.Student_No = StudentNo(); education.Qualification = history.Qualifications; try { WebServices.StudentEducationService().Create(ref education); TempData["institutionCreated"] = "Institution Added Successfully"; } catch (Exception ex) { TempData["institutionFailed"] = ex.Message; } return(RedirectToAction("Institutions")); }