/// <summary> /// Default constructor /// </summary> public LoginViewModel() { LoginCommand = new RelayParameterizedCommand(async(parameter) => await LoginAsync(parameter)); RegisterCommand = new RelayCommand(async() => await RegisterAsync()); }
/// <summary> /// Initializes a new instance of the <see cref="RegisterViewModel"/> class. /// </summary> public RegisterViewModel() { // Create commands LoginCommand = new RelayCommand(async() => await LoginAsync()); RegisterCommand = new RelayParameterizedCommand(async(parameter) => await RegisterAsync(parameter)); }