Example #1
0
        public async Task <DesignProduct> GetDesignProduct(long productId)
        {
            var response = await _httpService.Get2 <DesignProduct>($"{url}/GetDesignProduct/{productId}");

            if (!response.Success)
            {
                throw new ApplicationException(await response.GetBody());
            }
            return(response.Response);
        }
        public async Task <List <StoreUsers> > Get()
        {
            var response = await _httpService.Get2 <List <StoreUsers> >($"{url}/all");

            if (!response.Success)
            {
                throw new ApplicationException(await response.GetBody());
            }
            return(response.Response);
        }
Example #3
0
        public async Task <Order> Get(long id)
        {
            var response = await _httpService.Get2 <Order>($"{url}/{id}");

            if (!response.Success)
            {
                throw new ApplicationException(await response.GetBody());
            }
            return(response.Response);
        }
Example #4
0
        public async Task <UserAB> GetCurrent()
        {
            var response = await _httpService.Get2 <UserAB>($"{url}/GetCurrent");

            if (!response.Success)
            {
                throw new ApplicationException(await response.GetBody());
            }

            return(response.Response);
        }
Example #5
0
        public async Task <List <UserC> > GetUserCBySearch(string searchText)
        {
            var response = await _httpService.Get2 <List <UserC> >($"{url}/GetUserCBySearch/{searchText}");

            if (!response.Success)
            {
                throw new ApplicationException(await response.GetBody());
            }

            return(response.Response);
        }
Example #6
0
        public async Task <List <EmployeeRole> > GetRolesForStore(long storeId)
        {
            var response = await _httpService.Get2 <List <EmployeeRole> >($"{url}/{storeId}");

            if (!response.Success)
            {
                throw new ApplicationException(await response.GetBody());
            }
            return(response.Response);
        }
Example #7
0
        public async Task <List <Message> > Get(long orderId)
        {
            var response = await _httpService.Get2 <List <Message> >($"{url}/Chat/{orderId}");

            if (!response.Success)
            {
                throw new ApplicationException(await response.GetBody());
            }
            return(response.Response);
        }