|
@@ -99,9 +99,7 @@ namespace TEAMModelOS.Controllers.Syllabus
|
|
|
|
|
|
List<Syllabuses> syllabuses = await azureCosmosDBRepository.SaveOrUpdateAll<Syllabuses>(data);
|
|
|
if (syllabuses != null) return builder.Data(request.@params).build();
|
|
|
- else throw new BizException("保存失败", ResponseCode.FAILED);
|
|
|
-
|
|
|
- //return builder.Error(false, ResponseCode.FAILED, "保存失败").build();
|
|
|
+ else return builder.build();
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -218,7 +216,8 @@ namespace TEAMModelOS.Controllers.Syllabus
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- throw new BizException("数据不存在", ResponseCode.DATA_EMPTY_NULL);
|
|
|
+ return builder.build();
|
|
|
+ //throw new BizException("数据不存在", ResponseCode.DATA_EMPTY_NULL);
|
|
|
}
|
|
|
|
|
|
//return builder.Data(flag).Extend(new Dictionary<string, object>() { { "deleteData", nodes } }).build();
|
|
@@ -289,10 +288,11 @@ namespace TEAMModelOS.Controllers.Syllabus
|
|
|
|
|
|
return builder.Data(treess).build();
|
|
|
}
|
|
|
- else throw new BizException("资源未找到", ResponseCode.NOT_FOUND);
|
|
|
+ else return builder.build();
|
|
|
+ //throw new BizException("资源未找到", ResponseCode.NOT_FOUND);
|
|
|
|
|
|
- //return builder.Error(false, ResponseCode.NOT_FOUND, "资源未找到").build();
|
|
|
- //throw new BizException("sss");
|
|
|
+ //return builder.Error(false, ResponseCode.NOT_FOUND, "资源未找到").build();
|
|
|
+ //throw new BizException("sss");
|
|
|
}
|
|
|
}
|
|
|
}
|