예제 #1
0
        public async Task <CreateSecureCodeResultModel> CreateSecureCode(LoginStepOneModel model)
        {
            var result = await _requestManagerService.Post <ServiceResponse <CreateSecureCodeResultModel> >("/create_secure_code", model);

            if (result?.Code != 200)
            {
                throw new ManualException("کد اعتبار سنجی صحیح نمیباشد!");
            }
            return(result.DataModel);
        }
예제 #2
0
        public async Task <DestinationPortalModel> AddDestinationPortal(AddDestinationPortalModel model)
        {
            var result = await _requestManagerService.Post <ServiceResponse <DestinationPortalModel> >("/dportal_add", model);

            return(result.DataModel);
        }
예제 #3
0
        public async Task <AccountModel> AddAccount(AddAccountModel model)
        {
            var result = await _requestManagerService.Post <ServiceResponse <AccountModel> >("/accounts_add", model);

            return(result.DataModel);
        }
예제 #4
0
 public async Task CreateRequest(CreateRequest requestModel)
 {
     await _requestManagerService.Post <ServiceResponse <object> >("/create_payment_request", requestModel);
 }
예제 #5
0
        public async Task <UserProfileModel> GetUserProfile(ServiceRequest reqModel)
        {
            var result = await _requestManagerService.Post <ServiceResponse <UserProfileModel> >("/profile_get", reqModel);

            return(result.DataModel);
        }
예제 #6
0
        public async Task <PersonalPortalModel> AddPersonalPortal(AddPersonalPortalModel model)
        {
            var result = await _requestManagerService.Post <ServiceResponse <PersonalPortalModel> >("/portal_add", model);

            return(result.DataModel);
        }