/* username=admin & password=123456 */ public async Task <ActionResult> GetToken(String username, String password) { var user = await _userService.GetAsync(username, password); if (user == null) { return(Content("نام کاربری و یا کلمه عبور نادرست است")); } return(Content(await _tokenBuilder.GenerateTokenAsync(user))); }