Example #1
0
        public bool IsValid(LoginViewModel user)
        {
            if (user == null)
                return false;

            if (string.IsNullOrEmpty(user.Email))
                return false;
            if (string.IsNullOrEmpty(user.Password))
                return false;

            return true;
        }
Example #2
0
 public bool Login(LoginViewModel user)
 {
     return this._loginService.Login(user.Email, user.Password);
 }