public IEnumerable <Administrator> getAllAdministrators()
        {
            IDal dal = new PrescriptionDAL.DalImplement();

            return(dal.getAllAdministrators());
        }
        /*   public int medicinePerPeriod(string medicine, DateTime startDate, DateTime endDate)
         * {
         * IDal dal = new PrescriptionDAL.DalImplement();
         * int medicineId = dal.getAllMedicines().FirstOrDefault(m => m.Name == medicine).Id;
         *     return dal.getAllPrescriptions().Count(prescription => prescription.StartDate >= startDate && prescription.StartDate <= endDate && prescription.medicine.Exists(m => m == medicineId));
         * }*/


        public bool isAdministrator(string username, string password)
        {
            IDal dal = new PrescriptionDAL.DalImplement();

            return(dal.getAllAdministrators().ToList().Exists(admin => admin.Password == password && admin.UserName == username));
        }