public bool AuthCheck(string Password) { LoginModel model = new LoginModel(); CCIRepository _repository = CCIRepository.CreateRepository(); model = _repository.GetPassword(); if (model.Password.Equals(Password)) { return(true); } return(false); }