public static object Szukaj_3(string imie) { var data = (from a in ManagerSection.Bsd_ADD().Personel where a.lname.StartsWith(imie) || a.fname.StartsWith(imie) select new { a.id_pers, a.fname, a.lname }); return(data); }
public static object Szukaj_2(string imie) { var data = (from a in ManagerSection.Bsd_ADD().Object where a.name.StartsWith(imie) select new { a.id_obj, a.name }); return(data); }