public Threenine.Data.Paging.IPaginate <CatalogItem> GetAllActive(addon365.Domain.Entity.Paging.PagingParams pagingParams) { HttpResponseMessage response = _httpClient.GetAsync("Product?" + "PageNumber=" + pagingParams.PageNumber + "&PageSize=" + pagingParams.PageSize).Result; Threenine.Data.Paging.IPaginate <CatalogItem> products = null; if (response.IsSuccessStatusCode) { var json = response.Content.ReadAsStringAsync().ConfigureAwait(true) .GetAwaiter() .GetResult(); products = JsonConvert.DeserializeObject <Threenine.Data.Paging.Paginate <CatalogItem> >(json); } return(products); }
public Threenine.Data.Paging.IPaginate <Enquiry> GetAllBooked(addon365.Domain.Entity.Paging.PagingParams pagingParams) { HttpResponseMessage response = _httpClient.GetAsync("Booking?" + "PageNumber=" + pagingParams.PageNumber + "&PageSize=" + pagingParams.PageSize).Result; Threenine.Data.Paging.IPaginate <Enquiry> enquiries = null; if (response.IsSuccessStatusCode) { var json = response.Content.ReadAsStringAsync().ConfigureAwait(true) .GetAwaiter() .GetResult(); enquiries = JsonConvert.DeserializeObject <Threenine.Data.Paging.Paginate <Enquiry> >(json); string j = json; } return(enquiries); }