Esempio n. 1
0
        public ActionResult Index()
        {
            var model = new ModelDNNewsSSCItem
            {
                Type     = 6,
                ListItem = _newsSscapi.GetAll(UserItem.AgencyID)
            };

            return(View(model));
        }
Esempio n. 2
0
        public ActionResult BoxMail()
        {
            var type  = Convert.ToInt32(Request.QueryString["type"]);
            var model = new ModelDNMailSSCItem
            {
                Type            = type,
                TotalMailInbox  = _dnMailSscapi.CountInboxNew(UserId, type).Count,
                TotalMailDrafts = _dnMailSscapi.CountDrafts(UserId).Count,
                TotalMailSpam   = _dnMailSscapi.CountSpam(UserId, 4).Count,
                TotalNewsSsc    = _newsSscapi.GetAll(UserItem.AgencyID).Count
            };

            return(View(model));
        }