public User authenticate() { try { if (DataUser.ExistsUser(user.userId)) { } else { user.isOk = false; user.messages.Add("Utente non esistente"); } } catch (Exception ex) { throw new Exception(ex.Message); } return(user); }
public User authenticate() { try { if (DataUser.ExistsUser(user.userId)) { } else { user.isOk = false; user.messages.Add("Utente non esistente"); } } catch (Exception ex) { throw new Exception(ex.Message); } return(user); }