Adding EF initialization

This commit is contained in:
2016-01-29 11:25:44 -05:00
parent 37a7a24436
commit 68a77366e9
25 changed files with 2534 additions and 29 deletions
+7 -2
View File
@@ -1,6 +1,7 @@
using System.IO;
using System.Linq;
using System.Web.Mvc;
using LeafWeb.Core.DAL;
using LeafWeb.Web.ViewModels.LeafInput;
namespace LeafWeb.Web.Controllers
@@ -9,8 +10,12 @@ namespace LeafWeb.Web.Controllers
{
public ActionResult Index()
{
// initialize the session storage to retain SessionID between requests
Session["placeholder"] = 0;
var dataService = new DataService();
var fluxnetSites = dataService.GetFluxnetSites().ToList();
// initialize the session storage to retain SessionID between requests
Session["placeholder"] = 0;
return View();
}