public static bool CheckLogin(string login) { _commonLogic = DependencyResolver.CommonLogic; foreach (var item in _commonLogic.GetUserLogins()) { if (item == login) { return(true); } } return(false); }