private void Login() { if (null == SelectedPractice) { return; } //SET DEFAULT PRACTICE _deviceSetupService.MakePractceDefault(SelectedPractice.Id); Device.PracticeId = SelectedPractice.Id; Local = ServerConfig.CreateLocal(SelectedPractice, Url, true); //update dev _deviceSetupService.Register(Device); _deviceSetupService.SaveLocal(Local); Local = _deviceSetupService.GetLocal(); ShowViewModel <SignInViewModel>(); }