Silverlight wcf service - change return value of method -


in service had method returning bool, later changed ilist, updated service right clicking on service reference , made update. update did not update method return value. code error message says "cannot implicitly convert type bool system.collection.generic.ilist<..>"

patientservice.savepatient(personid, firstname, lastname, causeofvisit,(s, e) => patientdata = e.result); 

the method in service:

    [operationcontract]     public ilist<patient> savepatient(string personid, string firstname, string lastname, datetime timeofarrival, string causeofvisit)     {         patientrepository.savepatient(personid, firstname, lastname, timeofarrival, causeofvisit);         return patientrepository.patients;     } 

how can solve problem?

when changed returning bool ilist did build solution in build @ top menu before made update service reference? because seems me still returning bool since forgot step, needed 2 steps 1 update in server side(projectname.web) define wcf build solution , client side did update service reference.


wcfservice.topicinfoasync(query_topics, (int)numberoftopics); wcfservice.topicinfocompleted += (stopicinfo, eatopicinfo) => {    topiclist = eatopicinfo.result; } 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -