Ejemplo n.º 1
0
 public static List <string> GetEmployeesName(string prefixText)
 {
     using (dbDatabaseDataDataContext db = new dbDatabaseDataDataContext())
     {
         List <string> lstNames = new List <string>();
         var           Name     = db.SearchProduct(int.Parse(prefixText)).ToList();
         for (int i = 0; i < Name.Count; i++)
         {
             lstNames.Add(Name[i].ProductName);
         }
         return(lstNames);
     }
 }