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; }
public bool Login(LoginViewModel user) { return this._loginService.Login(user.Email, user.Password); }