Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

how to pass dynamic parameter to method ?

$
0
0

Hi,

i am creating an method in WCF

Company(string Email,string Password,string Query)

user can pass in query

/* here are some variable which have to need to pass a query
         * CompanyName
         * City
         * State
         * zip
         * Country
         * Status
         * AccountType
         * HearAboutUs
         * Operation - C R U D
         */

Query would be like that , q = Operation:C+CompanyName:Microsoft+Country:US

so i am passing an option parameter to below method

msCompany(string Email, string Password, string Operaton = "R", string CompanyName = null, string City = null, string Sate = null, string Zip = null,
                              string Country = null,string Status = null,string AccountType = null,string HearAboutUs = null)

so how can pass dynamic parameter whenver user send data to Query parameter

thanks


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>