uses the new helper to get files
This commit is contained in:
parent
c3bd9aa12e
commit
c10e888087
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…
Add table
Add a link
Reference in a new issue