Ahmed Boughattas

Ahmed Boughattas

  • 1.8k
  • 6
  • 6.4k

retrieve my object using WCF

Mar 1 2012 4:28 AM
i work in silverlight project 
i have function that return an object 
haw can i retrive some attribute of this object in the main page 


 [OperationContract]
  public Employe ListerEmpById(int id)
       {
           using (var ec = new EntrepriseDataContext())
           {
               Employe req = (from p in ec.Employes
                             where p.Id==id
                             select p).SingleOrDefault();
               return req;

           }

       }

Answers (3)