Пример #1
0
        public bool Login(Login loginModel)
        {
            var model = new DAL.Login()
            {
                Email    = loginModel.Email,
                Password = loginModel.Password
            };

            return(loginRepository.Login(model));
        }
Пример #2
0
        public bool Login(Login loginModel)
        {
            var user = DbContext.UserLogin(loginModel.Email, loginModel.Password).FirstOrDefault();

            return(user != null ? true : false);
        }