コード例 #1
0
ファイル: Account.cs プロジェクト: Xsayro11/BlogSite
        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;
        }
コード例 #2
0
ファイル: Account.cs プロジェクト: Xsayro11/BlogSite
 public bool Login(LoginViewModel user)
 {
     return this._loginService.Login(user.Email, user.Password);
 }