示例#1
0
        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);
        }
示例#2
0
        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);
        }