Exemple #1
0
        public bool LoginWithUser(Entities.User user, bool rememberLogin, ISession httpSession)
        {
            bool flag = false;

            if (user != null)
            {
                flag = new Base.src.Domains.Services.SessionServices().SetSession(user, httpSession);
            }
            return(flag);
        }
Exemple #2
0
        public bool Login(string username, string password, bool rememberLogin, ISession httpSession)
        {
            bool flag = false;
            var  user = Repository <UserRepository>().ReadSingle(x => x.Username == username & x.Password == password);

            if (user != null)
            {
                flag = new Base.src.Domains.Services.SessionServices().SetSession(user, httpSession, rememberLogin);
            }
            return(flag);
        }