Пример #1
0
        public static async System.Threading.Tasks.Task<List<Kunde>>   GetKundenAsync( string Name ,  string deviceLanguage ,BusinessLayer.User User)
		{

			DataAccessLayer.DAL_Kunde dal_Kunde = new DataAccessLayer.DAL_Kunde ();
            var kunden =await dal_Kunde.GetKundenAsync (Name, deviceLanguage,  User);
			return kunden;

		}
Пример #2
0
        public static async System.Threading.Tasks.Task<List<Kunde>>   GetKundenAsync( string Name ,  string deviceLanguage ,BusinessLayer.User User, bool offline)
		{
			DataAccessLayer.DAL_Kunde dal_Kunde = new DataAccessLayer.DAL_Kunde ();
			if (offline == false)
			{
                var kunden =await dal_Kunde.GetKundenAsync (Name, deviceLanguage,  User);
				return kunden;
			}
			else
			{
                var kunden =await dal_Kunde.GetKundenAsync (Name, deviceLanguage,  User, true);
				return kunden;

			}

		}