public UserLogin LoginPasswordValidateCreate(string userName, string password) { try { UserLogin userLogin = new UserLogin() { UserName = userName, Password = password, ExternalID = "0", UserSourceType = SourceType.Internal }; UserService userService = new UserService(); userLogin = userService.LoginPasswordValidateCreate(userLogin); userLogin.Password = ""; return userLogin; } catch (Exception e) { Logging.WriteToEventLog("USER LoginPasswordValidateCreate " + e.Message); return null; } }