public void GetLogonUser() { userService.GetLogonUser((res, exp) => { if (exp == null) { BeginInvokeOnDispatcher(() => { if (!validateUser(res)) { return; } CurrentUser = res; LoggedInUser = res; GetCurrentPeriod(); createCustomFieldEntityList(); Publish(new MainWindowUpdateArgs()); }); } else { HideBusyIndicator(); HandleException(exp); } }); }