public double GetAccountBalanceByUser(User user) { bool isAutentificate = WebovaSluzba.Autentification(user.UserName, user.Password); if (!isAutentificate) { throw new SecurityException("User is not authentificated"); } return(100); }
public bool CheckUserAccount(string userName, string password) { return(WebSvc.Autentification(userName, password)); }