private async void Login(Authentication authentication) { StartLoading(); try { await service.LoginAsync(authentication); SwitchWindows(authentication); } catch (FaultException e) { Utils.ShowError(this, e.Message); } StopLoading(); }
private async void Login(Authorization authorization) { StartLoading(); try { await service.LoginAsync(authorization); SwitchWindows(authorization); } catch (UnsuccessfulResponseException e) { Utils.ShowError(this, e.Message); } StopLoading(); }