Esempio n. 1
0
        public JsonResult Create(ClassApplication dto)
        {
            dto.OperatorId = AuthorityHelper.OperatorId.Value;
            OperationResult oper = _classApplicationContract.Insert(dto);

            return(Json(oper));
        }
Esempio n. 2
0
        public JsonResult AddClassApplication(ClassApplication dto)
        {
            if (!_administratorContract.CheckExists(a => a.Id == dto.AdminId && !a.IsDeleted && a.IsEnabled))
            {
                return(Json(new OperationResult(OperationResultType.Error, "用户不存在")));
            }
            OperationResult oper = _classApplicationContract.Insert(dto);

            return(Json(oper));
        }