示例#1
0
        public PartialViewResult Index()
        {
            var model = new NotificationVm
            {
                MentorshipCnt = _mentorSrv.NewItemsCount,
                ConnectReqCnt = _connectSrv.GetNewConnectReq().Count,
                MessagesCnt   = _msgSrv.NewItemsCount,
                DiscussionCnt = _discussionSrv.NewItemsCount,
                EventsCnt     = _evetnSrv.NewItemsCount,
            };

            return(PartialView(model));
        }
示例#2
0
        public PartialViewResult Connect()
        {
            var connect = new ConnectService();

            return(PartialView(connect.GetNewConnectReq()));
        }