public CutMergeTaskResponse AddCutOrMergeTask(CutMergeTask task) { ResponseStruct rs; var ret = CutMergeService.AddCutOrMergeTask(task, out rs); if (rs.Code != ErrorNumber.None) { throw new HttpResponseException(JsonHelper.ToJson(rs)); } return(ret); }
public ResKeeperCutMergeTaskResponse AddCutOrMergeTask([FromHeader(Name = "AccessKey")] string AccessKey, ReqKeeperCutMergeTask task) { ResponseStruct rs; var ret = CutMergeService.AddCutOrMergeTask(task, out rs); if (rs.Code != ErrorNumber.None) { throw new AkStreamException(rs); } return(ret); }