uses the new helper to get files

vnext
Paul Schneider 8 years ago
parent 14347115af
commit 036107a9e9
1 changed files with 3 additions and 2 deletions

@ -65,7 +65,6 @@ namespace Yavsc.Controllers
DirectoryInfo di = new DirectoryInfo(_site.UserFiles.DirName);
ViewBag.Files = estimate.GetFileContent(di.FullName);
return View(estimate);
}
@ -148,7 +147,9 @@ namespace Yavsc.Controllers
{
return HttpNotFound();
}
ViewBag.Files = estimate.GetFileContent(_site.UserFiles.DirName);
ViewBag.Files = User.GetUserFiles(null);
return View(estimate);
}

Loading…