public RegistrationInPharmacy GetRegistrationByPharmacyName(String name)
 {
     foreach (RegistrationInPharmacy registration in RegistrationInPharmacyRepository.GetAll())
     {
         if (registration.Name.Equals(name))
         {
             return(registration);
         }
     }
     return(null);
 }
 public List <RegistrationInPharmacy> GetAll()
 {
     return(RegistrationInPharmacyRepository.GetAll());
 }