Exemplo n.º 1
0
 public ActionResult Withdraw(int clientId)
 {
     var model = new OperationModel
                     {
                         ClientId = clientId,
                         CurrentAmount =
                             this.clientsService.GetClient(clientId).PrimaryAccount.Amount
                     };
     return this.View(model);
 }
Exemplo n.º 2
0
 public ActionResult Withdraw(OperationModel model)
 {
     var client = this.clientsService.GetClient(model.ClientId);
     this.paymentService.Withdraw(client, model.Amount);
     return this.Json(true, JsonRequestBehavior.AllowGet);
 }
Exemplo n.º 3
0
 public ActionResult Deposit(int clientId)
 {
     var model = new OperationModel { ClientId = clientId };
     return this.View(model);
 }