public void updateMedicinePicture(int medicineId, HttpPostedFileBase file) { GoogleDriveAPIHelper gd = new GoogleDriveAPIHelper(); gd.deleteAllFiles(medicineId.ToString()); gd.UplaodFileOnDriveInFolder(file, medicineId.ToString(), ConfigurationManager.AppSettings["FolderNameOnDrive"].ToString()); }
public void addMedicine(Medicine medicine, HttpPostedFileBase file) { this.addMedicine(medicine); GoogleDriveAPIHelper gd = new GoogleDriveAPIHelper(); gd.UplaodFileOnDriveInFolder(file, medicine.Id.ToString(), ConfigurationManager.AppSettings["FolderNameOnDrive"].ToString()); }