Beispiel #1
0
 private void GetServices()
 {
     try
     {
         using (DataClassesDataContext data = new DataClassesDataContext())
         {
             var listServices = data.GetServices_En(88).ToList();
             rptServices.DataSource = listServices;
             rptServices.DataBind();
         }
     }
     catch (Exception ex)
     {
         // error message here
     }
 }