public JsonResult SelectSample(string sampleName, long timer) { var samplePath = _paths.Single(p => p.Name == sampleName); var source = System.IO.File.ReadAllText(samplePath.PhysicalPath); var vm = Parse(source, timer); return(Json(vm)); }
public IFileInfo GetFileInfo(string subpath) { return(_directorContents.Single(fi => fi.Name == subpath)); }