Esempio n. 1
0
 public static IList <Pharmacy> GetPharmacies(string search = @"", int num = -1)
 {
     if (string.IsNullOrEmpty(search))
     {
         if (num == -1)
         {
             return(new List <Pharmacy> (PharmacyRepository.GetPharmacies()));
         }
         else
         {
             return(new List <Pharmacy> (PharmacyRepository.GetPharmacies(num)));
         }
     }
     else
     {
         return(new List <Pharmacy> (PharmacyRepository.GetPharmacies(search)));
     }
 }
Esempio n. 2
0
 public static IList <Pharmacy> GetPharmacies(int[] ids)
 {
     return(new List <Pharmacy> (PharmacyRepository.GetPharmacies(ids)));
 }
Esempio n. 3
0
 public static IList <Pharmacy> GetPharmacies(int page = 0, int num = 10)
 {
     return(new List <Pharmacy> (PharmacyRepository.GetPharmacies(page * num, num)));
 }