public Response <StripeList <Stripe.Card> > GetCardListByUserId(int UserId) { var response = new Response <StripeList <Stripe.Card> >(); try { var _user = _userRepository.GetById(a => a.Id == UserId && a.DateDeleted == null); if (_user == null) { response.AddValidationError("", "User doesnot exist."); return(response); } var _stripecarts = _baseServices.GetCardList(_user.Stripe_CustomerId); response.Data = _stripecarts; response.Success = true; } catch (Exception ex) { HandleException(response, ex); } return(response); }