예제 #1
0
        public String ReadText(int id)
        {
            Manager fileFolderManager = getManager();
            String  pathToFileFolder  = fileFolderManager.getPathToFileFolder(id, filesFolder);

            return(System.IO.File.ReadAllText(pathToFileFolder));
        }
예제 #2
0
        public ActionResult ReadPicture(int id)
        {
            Manager fileFolderManager = getManager();
            String  pathtoFileFolder  = fileFolderManager.getPathToFileFolder(id, filesFolder);

            return(File(System.IO.File.ReadAllBytes(pathtoFileFolder), "application/octet-stream"));
        }