//
        // GET: /DashBoard/
        public DashBoardController()
        {
            try
            {
                dashDataContext = new DashRepository();

                menu = dashDataContext.menuItems();
            }
            catch(Exception ex)
            {

            }
        }
        public ProjectMenuModel menuItems()
        {
            ProjectMenuModel menu = new ProjectMenuModel();
            menu.pages = new Dictionary<string, List<string>>();
            try
            {
                DashDataContext ctx = new DashDataContext();
                var projects = ctx.project_status.Where(m => m.status == true);

                foreach(projectStatus m in projects)
                    menu.pages.Add(m.project, new List<string>());

                foreach(string k in menu.pages.Keys)
                {
                    var data = ctx.projtbl.Where(j => j.proj == k && j.PageActive == true);
                    foreach (project_tbl n in data)
                        menu.pages[k].Add(n.url);
                }
                
                
            }
            catch (Exception ex) { }

            return menu;
        }
 public ActionResult proj()
 {
     menu = dashDataContext.menuItems();
     return View(dashDataContext.project_summary());
 }