예제 #1
0
 public ActionResult Index()
 {
     HomeBO iHome = new HomeBO();
         ModelHome model = new ModelHome();
         model = iHome.GetDataForHome();
         _session.IsLogin = false;
         return View(model);
 }
예제 #2
0
 public HomeVM(HomeBO BO)
 {
     this.Permits = BO.Permits;
     this.PermitIDs = BO.PermitIDs;
     this.SelectedPermitID = BO.SelectedPermitID;
     this.Announcement = BO.Announcement.Description;
     this.ActivityLogs = BO.ActivityLogs;
 }
예제 #3
0
        public ActionResult Index()
        {
            HomeBO    iHome = new HomeBO();
            ModelHome model = new ModelHome();

            model            = iHome.GetDataForHome();
            _session.IsLogin = false;
            return(View(model));
        }
예제 #4
0
        public List <Node> getNotifications(int id)
        {
            var bo   = new HomeBO();
            var list = bo.GetNotificationsForUser(id);
            var notificationTreeNodes = (from GBLNotifications n in list
                                         where n.NotificationCount != 0
                                         select new NotificationTreeNode(n)).ToList();
            var li = notificationTreeNodes.Select(no => new Node
            {
                notificationType = no.NotificationNode.NotificationType + " " + "(" + no.NotificationNode.NotificationCount + ")", notifications = bo.GetNotificationsForUser(id, no.NotificationNode.NotificationTypeId).Cast <GBLNotifications>().Select(item => new Notification
                {
                    ID = item.NotificationId, NotificationDesc = item.NotificationDescription
                }).ToList()
            }).ToList();

            return(li);
        }
예제 #5
0
 public ActionResult Index()
 {
     if ((_session.IsLogin && _session.IsStore) || (_session.IsLogin && _session.IsAdmin))
         {
             _session.IsLogin = false;
             _session.StoreID = -1;
             _session.FullName = null;
             return RedirectToAction("Index", "Home");
         }
         IHome iHome = new HomeBO();
         Business.Model.ModelWeb.Home model = new Business.Model.ModelWeb.Home();
         model = iHome.GetHomeData(_session.SiteID, _session.LangID);
         return View(model);
 }