public static bool CheckPassword(string password) { _commonLogic = DependencyResolver.CommonLogic; foreach (var item in _commonLogic.GetUserPasswords()) { if (item == password) { return(true); } } return(false); }