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); }
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); }
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); }
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); }
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); }
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); }