public string SaveAttachment(AttachmentsDemoWeb.Constants.Attachment attachment) { try { DriveRestClient restClient = new DriveRestClient(AppConstants.GoogleDriveClientId, AppConstants.DropboxClientSecret, googledriveRedirectUrl.ToString()); restClient.Token = Storage.GoogleDrive.Token; string uploadText = restClient.UploadFile(attachment.AttachmentName, attachment.AttachmentBytes); return("Uploaded Sucessfully."); } catch (Exception s) { return(s.Message); } //return ""; }