示例#1
0
        public async Task <OutputResponseCaseAsdkV8Dto> Update(InputUpdateCaseAsdkV9Dto input)
        {
            string uri = ConfigurationService.UrlGetCase.ConvertUrl(new UrlParameters
            {
                idCase = input.ProjectId,
            });

            string             endpoint           = ConfigurationService.UrlServiceDesk + uri;
            AnswerGetCaseV9Api answerGetCaseV9Api = await ConnectionService.GetAsync <AnswerGetCaseV9Api>(token, endpoint, Constants.NameHeaderTokenASDK_V9);

            return(null);
        }
示例#2
0
        public async Task <OutputGetCaseAsdkV9Dto> GetCase(int idCase)
        {
            string uri = ConfigurationService.UrlGetCase.ConvertUrl(new UrlParameters
            {
                idCase = idCase,
            });

            string             endpoint           = ConfigurationService.UrlServiceDesk + uri;
            AnswerGetCaseV9Api answerGetCaseV9Api = await ConnectionService.GetAsync <AnswerGetCaseV9Api>(token, endpoint, Constants.NameHeaderTokenASDK_V9);

            return(answerGetCaseV9Api.MapperModel(new OutputGetCaseAsdkV9Dto()));
        }