// Processing the Download operation public ActionResult Download(string downloadInput) { FileManagerDirectoryContent args = JsonConvert.DeserializeObject <FileManagerDirectoryContent>(downloadInput); //Invoking download operation with the required paramaters // path - Current path where the file is downloaded; Names - Files to be downloaded; return(operation.Download(args.Path, args.Names)); }
public object DownloadFile(string downloadInput) { FileManagerDirectoryContent args = JsonConvert.DeserializeObject <FileManagerDirectoryContent>(downloadInput); //update FileAttribute (retrieval) var fileAttribute = fileAttributeRepository.Find(null).Items?.Where(q => q.Name == FileAttributes.RetrievalCount.ToString() && q.ServerFileId == Guid.Parse(args.Id)).FirstOrDefault(); fileAttribute.AttributeValue += 1; fileAttributeRepository.Update(fileAttribute); return(operation.Download(args.Path, args.Names, args.Data)); }
public IActionResult Download(string downloadInput) { FileManagerDirectoryContent args = JsonConvert.DeserializeObject <FileManagerDirectoryContent>(downloadInput); return(operation.Download(args.Path, args.Names, args.Data)); }
public IActionResult Download(string path, string[] fileNames) { return(operation.Download(path, fileNames)); }
public async Task <IActionResult> Download([FromForm] string downloadInput) { FileManagerDirectoryContent args = JsonConvert.DeserializeObject <FileManagerDirectoryContent>(downloadInput); return(opration.Download(args.Path, args.Names)); }