title: Angular call API controller with parameters
body: <p>I have LogInController:</p>
  
  <pre><code>[HttpGet("[action]")]
          public IActionResult Sample(string email, string password)
          {
              var user = new SystemUser();
              if (user.EmailAddress == email &amp;&amp; user.Password == password)
                  return View();
              else return null;
          }
  </code></pre>
  
  <p>And I want to call controller from Angular, something like this:</p>
  
  <pre><code>@Injectable()
  export class Authentification {
    constructor(private http: HttpClient { }
  
  
    AuthentificateUser(email: string, password: string) {
    return this.http.get('https://localhost:44348/api/LogIn/Sample?email=' + this.email + '&amp;password=' + this.password).subscribe((res: Response) =&gt; {
            const AuthentificateUser = res.json();
          });
    }
  }
  </code></pre>
  
  <p>On View I have:</p>
  
  <pre><code>&lt;input ng-model="email" matInput placeholder="Email" formControlName="email"&gt;
  &lt;input ng-model="password" matInput type="password" placeholder="Password" formControlName="password"&gt;
  </code></pre>
  
  <p>How I can authentificate user on simple and clean way, using Angular 5+
  This is trivial, I know, but I have to start from somewhere.</p>