From 036107a9e9eb7178c0ca987f42a9f06c08a1b56d Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Wed, 16 Nov 2016 10:18:17 +0100 Subject: [PATCH] uses the new helper to get files --- Yavsc/Controllers/EstimateController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Yavsc/Controllers/EstimateController.cs b/Yavsc/Controllers/EstimateController.cs index e142560a..919a2db5 100644 --- a/Yavsc/Controllers/EstimateController.cs +++ b/Yavsc/Controllers/EstimateController.cs @@ -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); }