예제 #1
0
        /// <summary>
        /// There are no comments for ApplyVAT in the schema.
        /// </summary>
        public static global::Microsoft.OData.Client.DataServiceActionQuerySingle <int> ApplyVAT(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::ProductService.Models.Product> source, int vat, global::ProductService.Models.City manufacturedIn, global::System.Collections.Generic.ICollection <global::ProductService.Models.City> availableCities)
        {
            if (!source.IsComposable)
            {
                throw new global::System.NotSupportedException("The previous function is not composable.");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuerySingle <int>(source.Context, source.AppendRequestUri("Default.ApplyVAT"), new global::Microsoft.OData.Client.BodyOperationParameter("vat", vat),
                                                                                         new global::Microsoft.OData.Client.BodyOperationParameter("manufacturedIn", manufacturedIn),
                                                                                         new global::Microsoft.OData.Client.BodyOperationParameter("availableCities", availableCities)));
        }
예제 #2
0
 public void AddToCities(global::ProductService.Models.City city)
 {
     base.AddObject("Cities", city);
 }