Exemple #1
0
        public virtual ActionResult GetCountInfoUser()
        {
            int userId        = User.Identity.GetUserId <int>();
            var countUserInfo = new CountInfoUser();

            countUserInfo.CountComment = _commentService.CountCommentUser(userId);
            countUserInfo.CountMessage = _contactService.CountMessageUser(userId);

            countUserInfo.CountOrder = _saleService.CountSaleUser(userId);


            countUserInfo.CountNotConfirmed = _saleService.CountNotConfirmedUser(userId);
            countUserInfo.CountProcess      = _saleService.CountProcessUser(userId);
            countUserInfo.CountSend         = _saleService.CountSendUser(userId);
            countUserInfo.CountFavorite     = _favoriteUserService.CountFavoriteUser(userId);
            return(PartialView(MVC.Account.Views._BaseTotalInfo, countUserInfo));
        }