.Net Core Controller
[HttpGet] public async Task<ActionResult<IEnumerable<ABBUserModel>>> GetUser() { //测试数据库连通性 return await _context.AbbUser.ToListAsync(); // StringValues authString; // StringValues email; // Request.Headers.TryGetValue("email", out email); // Request.Headers.TryGetValue("authString",out authString); // //在helper中校验邮箱和登录信息 // return RelayHelper.GetUser(authString.ToString(),email); }