public async Task <GetProvinceCityResponse> GetProvinceCityListAsync()
        {
            await _client.OpenAsync();

            var response = await _client.getProvinceCityListAsync(_configuration["Asnaf:Password"]); //TODO: SetAppSetting

            await _client.CloseAsync();

            return(JsonConvert.DeserializeObject <GetProvinceCityResponse>(response));
        }
Esempio n. 2
0
        public async Task <ProductResponse> ProductAsync(ProductRequest request)
        {
            await _client.OpenAsync();

            var response = await _client.productAsync(
                request.Password,
                request.CompanyId,
                request.Title,
                request.IranCode,
                request.UserName,
                request.UserEmail,
                request.RegistrationDate,
                request.BrandOwnerdocFileName,
                request.BusinessLicenseFileName,
                request.HealthLicensingFileName,
                request.CostEstimationFileName,
                request.CommitmentFileName,
                request.CatalogueFileName,
                request.FactorFileName,
                request.OtherDocumentFileName,
                request.BrandOwnerdoc,
                request.BusinessLicense,
                request.HealthLicensing,
                request.CostEstimation,
                request.Commitment,
                request.Catalogue,
                request.Factor,
                request.OtherDocument);

            await _client.CloseAsync();

            return(JsonConvert.DeserializeObject <ProductResponse>(response));
        }
Esempio n. 3
0
        public async Task <ConferenceIssuanceResponse> ConferenceIssuanceAsync(ConferenceIssuanceRequest request)
        {
            await _client.OpenAsync();

            var response = await _client.conferenceIssuanceAsync(request.Password, request.CompanyId, request.Title,
                                                                 request.Date, request.Location, request.Text, request.Image, request.ImageFileName, request.VideoExist,
                                                                 request.CommitmentFileName, request.Commitment);

            await _client.CloseAsync();

            return(JsonConvert.DeserializeObject <ConferenceIssuanceResponse>(response));
        }