예제 #1
0
        public double GetAccountBalanceByUser(User user)
        {
            bool isAutentificate = WebovaSluzba.Autentification(user.UserName, user.Password);

            if (!isAutentificate)
            {
                throw new SecurityException("User is not authentificated");
            }
            return(100);
        }
예제 #2
0
 public bool CheckUserAccount(string userName, string password)
 {
     return(WebSvc.Autentification(userName, password));
 }