[HttpGet] public async Task<IEnumerable<UserForDisplayDto>> GetAllUsers() { var person = Request.Headers["HTTP_JHED_UID"]; if (await context.Users.AnyAsync(x => x.JHED_ID == person)) { var users = await repository.GetAllUsers(); return mapper.Map<IEnumerable<User>, IEnumerable<UserForDisplayDto>>(users); } else { return null; } }
Request.Headers["HTTP_JHED_UID"]
Response.Headers["HTTP_JHED_UID"]
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)