public JsonResult SaveStudentDetail(StudentServiceReference.Student student)
        {
            bool   status  = false;
            string message = string.Empty;

            StudentServiceReference.Student studentObj = null;
            StudentServiceReference.StudentServiceClient studentService = new StudentServiceReference.StudentServiceClient();
            studentObj = studentService.SaveStudentDetail(student.StudentID, student);

            return(Json(new { resultData = studentObj, outcome = status, message = message }, JsonRequestBehavior.AllowGet));
        }
        public JsonResult UpdateStudentDetail(StudentServiceReference.Student student)
        {
            bool   status  = false;
            string message = string.Empty;

            StudentServiceReference.Student         studentObj = null;
            IList <StudentServiceReference.Student> lstStudent = null;

            StudentServiceReference.StudentServiceClient studentService = new StudentServiceReference.StudentServiceClient();
            studentObj = studentService.SaveStudentDetail(student.StudentID, student);
            if (studentObj != null && studentObj.StudentID > 0)
            {
                lstStudent = studentService.GetAllStudentDetail();
            }
            return(Json(new { resultData = lstStudent, outcome = status, message = message }, JsonRequestBehavior.AllowGet));
        }