public static ProductFamily Create(this ProductFamilyService service, int familyId, ProductFamily productFamily)
        {
            string url = string.Format(format: "/{0}/{1}/{2}", arg0: ProductFamilyService.ProductFamilyKey, arg1: familyId, arg2: ProductService.ProductKey);

            return(service.PostRequest <ProductFamily, ProductFamily>(productFamily, url));
        }
 public static void Archive(this ProductFamilyService service, ProductFamily productFamily)
 {
     throw new NotImplementedException();
 }
        public static IEnumerable <ProductFamily> All(this ProductFamilyService service, int familyId)
        {
            string url = string.Format(format: "/{0}/{1}/{2}", arg0: ProductFamilyService.ProductFamilyKey, arg1: familyId, arg2: ProductService.ProductKey);

            return(service.GetRequest <List <ProductFamily> >(url));
        }
        public static ProductFamily Single(this ProductFamilyService service, string handle)
        {
            string url = string.Format(format: "/{0}/handle/{1}", arg0: ProductFamilyService.ProductFamilyKey, arg1: handle);

            return(service.GetRequest <ProductFamily>(url));
        }
        public static IEnumerable <ProductFamily> All(this ProductFamilyService service)
        {
            string url = string.Format(format: "/{0}", arg0: ProductFamilyService.ProductFamilyKey);

            return(service.GetRequest <List <ProductFamily> >(url));
        }
 public static async Task ArchiveAsync(this ProductFamilyService service, ProductFamily productFamily)
 {
     throw new NotImplementedException();
 }
        public static async Task <ProductFamily> CreateAsync(this ProductFamilyService service, int familyId, ProductFamily productFamily)
        {
            string url = string.Format(format: "/{0}/{1}/{2}", arg0: ProductFamilyService.ProductFamilyKey, arg1: familyId, arg2: ProductService.ProductKey);

            return(await service.PostRequestAsync <ProductFamily, ProductFamily>(productFamily, url));
        }
        public static async Task <ProductFamily> SingleAsync(this ProductFamilyService service, string handle)
        {
            string url = string.Format(format: "/{0}/handle/{1}", arg0: ProductFamilyService.ProductFamilyKey, arg1: handle);

            return(await service.GetRequestAsync <ProductFamily>(url));
        }
        public static async Task <IEnumerable <ProductFamily> > AllAsync(this ProductFamilyService service)
        {
            string url = string.Format(format: "/{0}", arg0: ProductFamilyService.ProductFamilyKey);

            return(await service.GetRequestAsync <List <ProductFamily> >(url));
        }