public async Task <IActionResult> RequestAccessAsync([FromBody] RequestAccessDto dto) { if (null == dto) { return(BadRequest(dto)); } _logger.LogDebug("Processing RequestAccessAsync"); var access = await _accessManager.RequestAccessAsync(dto.DoorId, dto.PersonId, dto.Temperature); return(Ok(_mapper.Map <AccessDto>(access))); }