public void addMedicine(Medicine medicine)
 {
     try
     {
         IDal dal = new PrescriptionDAL.DalImplement();
         dal.addMedicine(medicine);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
 public void addMedicine(Medicine medicine, HttpPostedFileBase file)
 {
     try
     {
         string filePath = Path.Combine(HttpContext.Current.Server.MapPath("~/GoogleDriveFiles"),
                                        Path.GetFileName(file.FileName));
         file.SaveAs(filePath);
         if (!validMedicinePicture(filePath))
         {
             throw new Exception("the picture does not contain a medicine");
         }
         IDal dal = new PrescriptionDAL.DalImplement();
         dal.addMedicine(medicine, file);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }