示例#1
0
        public void updateMedicinePicture(int medicineId, HttpPostedFileBase file)
        {
            GoogleDriveAPIHelper gd = new GoogleDriveAPIHelper();

            gd.deleteAllFiles(medicineId.ToString());
            gd.UplaodFileOnDriveInFolder(file, medicineId.ToString(), ConfigurationManager.AppSettings["FolderNameOnDrive"].ToString());
        }
示例#2
0
        public void addMedicine(Medicine medicine, HttpPostedFileBase file)
        {
            this.addMedicine(medicine);
            GoogleDriveAPIHelper gd = new GoogleDriveAPIHelper();

            gd.UplaodFileOnDriveInFolder(file, medicine.Id.ToString(), ConfigurationManager.AppSettings["FolderNameOnDrive"].ToString());
        }