public String ReadText(int id) { Manager fileFolderManager = getManager(); String pathToFileFolder = fileFolderManager.getPathToFileFolder(id, filesFolder); return(System.IO.File.ReadAllText(pathToFileFolder)); }
public ActionResult ReadPicture(int id) { Manager fileFolderManager = getManager(); String pathtoFileFolder = fileFolderManager.getPathToFileFolder(id, filesFolder); return(File(System.IO.File.ReadAllBytes(pathtoFileFolder), "application/octet-stream")); }