Пример #1
0
        public async Task <FileContentResult> OnGet()
        {
            if (Id == Guid.Empty)
            {
                return(null);
            }

            Event user = await _eventData.GetEventAsync(Id);

            if (user == null)
            {
                return(null);
            }

            return(File(user.Banner, "image/jpeg"));
        }