3
Answers

retrieve my object using WCF

Ahmed Boughattas

Ahmed Boughattas

12y
2.2k
1
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)