Beispiel #1
0
        public async Task <IActionResult> GetFloorImageAsync(Guid id)
        {
            var(response, contentType) = await _floorManager.GetFloorImage(id, User.FindFirstValue(ClaimTypes.Email));

            if (response == null)
            {
                return(NotFound());
            }

            return(new FileStreamResult(response, new MediaTypeHeaderValue(contentType).MediaType));
        }