コード例 #1
0
        public IViewComponentResult Invoke()
        {
            int loggedUserId = this.GetClaim <int>(nameof(DataAccess.Entities.User.Id));

            return(Content(billRepository.Count(b => b.PaymentStatus == DataAccess.Enums.PaymentStatus.WaitingForPayment && b.Renter.Id == loggedUserId).ToString()));
        }