Exemplo n.º 1
0
        public ActionResult TransactionHistory()
        {
            var request = new GetTransactionsRequest { IdentityToken = this.FormsAuthentication.GetAuthenticationToken() };
            var response = this.transactionService.GetTransactionsForUser(request);
            var result = response.ConvertToTransactionsViewModelCollection();

            var jsonNetResult = new JsonNetResult
            {
                Formatting = (Formatting)Newtonsoft.Json.Formatting.Indented,
                Data = result
            };
            return jsonNetResult;
        }
Exemplo n.º 2
0
 /// <summary>
 /// The get transactions for user.
 /// </summary>
 /// <param name="request">
 /// The request.
 /// </param>
 /// <returns>
 /// The collection of get transactions responses.
 /// </returns>
 public List<GetTransactionsResponse> GetTransactionsForUser(GetTransactionsRequest request)
 {
     var result = this.transactionsRepository.GetTransactionsForUser(request.IdentityToken);
     return result.ConvertToGetTransactionsResponseCollection();
 }