public async Task <ActionResult> SaveFormJson(StudentInfoEntity entity) { if (entity.Id.IsNullOrZero()) { entity.Code = await new StudentInfoCache().GetStudentCode(); } OperatorInfo operatorInfo = await Operator.Instance.Current(); entity.SysDepartmentId = operatorInfo.DepartmentId; entity.SysDepartmentName = operatorInfo.DepartmentName; TData <string> obj = await studentInfoBLL.SaveForm(entity); return(Json(obj)); }