Beispiel #1
0
        public ActionResult Create_save(JpmSoftDAL.Student srinfo)
        {
            srinfo.Student_ID = Guid.NewGuid().ToString();
            Utility.Student.Student stu = new Utility.Student.Student();
            stu.entity = srinfo;
            var result  = stu.Create();
            var message = new { msg = result, fileid = stu.BaseFile.file.FileID };

            CurrentStartFlow.TaskName = stu.entity.Student_Name;
            return(Json(message));
        }
Beispiel #2
0
 public ActionResult Edit_save(JpmSoftDAL.Student srinfo)
 {
     Utility.Student.Student stu = new Utility.Student.Student();
     stu.entity = srinfo;
     if (JpmSoftComponent.Student.EditStudent(srinfo) == 1)
     {
         CurrentTask.TaskName = srinfo.Student_Name;
         var message = new { msg = "1" };
         return(Json(message));
     }
     else
     {
         var message = new { msg = "0" };
         return(Json(message));
     }
 }