Ejemplo n.º 1
0
        public IActionResult GetLatestPaymentTypeForUser()
        {
            var currentUserId            = _userRepo.GetUserIdByUid(UserId);
            var latestPaymentTypeForUser = _paymentTypeRepo.GetLatestPaymentTypeForUser(currentUserId);

            if (latestPaymentTypeForUser == null)
            {
                return(NoContent());
            }

            return(Ok(latestPaymentTypeForUser));
        }