Ejemplo n.º 1
0
 public void ValidateLogin()
 {
     var vm = (this.Result.ViewModel as LoginViewModel) ?? new LoginViewModel();
     var u = new User();
     var msg = _sAccount.ValidateUser(vm.Username, vm.Password, ref u);
     Result.ViewModel.Message = msg.Message;
     if (!msg.Success)
         Response<AccountController>(f => f.Index(u));
     else
         Response<LoginController>(f => f.Login());
 }
Ejemplo n.º 2
0
 void transfering_xm_from_a_to_b(decimal amount, Account from, Account to,User user)
 {
     LastStatus = AccountService.Transfer(user,amount, from,to);
 }
Ejemplo n.º 3
0
 public void Index(User u)
 {
 }
Ejemplo n.º 4
0
 void the_following_accounts(string[] number, decimal[] balance,User[] owner)
 {
     for (var i = 0; i < number.Length; i++)
         rAccount.Add(new Account() { Number = number[i], Balance = balance[i],Owner = owner[i] });
 }