Пример #1
0
 public ActionResult Student_InfoPost()
 {
     if (ModelState.IsValid)
     {
         Models.StudentInformation_Result st = new Models.StudentInformation_Result();
         UpdateModel(st);
         BusinessLayer businesslayer = new BusinessLayer();
         businesslayer.AddStudentInfo(st);
     }
     return(View());
 }
Пример #2
0
        public ActionResult Edit_Post()
        {
            if (ModelState.IsValid)
            {
                string studentId = Request.QueryString["stuId"].ToString();
                Models.StudentInformation_Result st = new Models.StudentInformation_Result();

                UpdateModel(st);
                st.StudentID = Int32.Parse(studentId);
                BusinessLayer businesslayer = new BusinessLayer();
                businesslayer.updateStudentInfo(st);
            }
            return(View());
        }