public CategoryServiceResponse getCategories()
        {
            var resultList = new CategoryServiceResponse();

            ApiClient.Category.CategoryService catSer =
                new ApiClient.Category.CategoryService(AppRuntime.MarketWebClient, "api/v1/categories");

            var result = catSer.GetCategories().Result;

            return(result);
        }
        public ProductsCategoryServiceResponse getProductsByCategories(int IdCategory)
        {
            var resultList = new CategoryServiceResponse();


            ApiClient.Service.ProductCategoriesService resultService =
                new ApiClient.Service.ProductCategoriesService(AppRuntime.MarketWebClient, "api/v1/category");

            var result = resultService.GetProductCategory(IdCategory).Result;

            listProductsLocal = result.Products;

            return(result);
        }