Exemple #1
0
        public IActionResult GetAllPaymentTypesByUserUid()

        {
            var currentUserId = _userRepo.GetUserIdByUid(UserId);

            if (_paymentTypeRepo.GetAllPaymentTypesByUserId(currentUserId) == null)
            {
                return(NoContent());
            }
            var allPaymentTypesForSelectedUser = _paymentTypeRepo.GetAllPaymentTypesByUserId(currentUserId);

            return(Ok(allPaymentTypesForSelectedUser));
        }