// POST: Posts/Delete/5
        // 9:10

        public async Task <FileContentResult> GetImage(int id)
        {
            Post post = await _dbContext.GetPostAsync(id);

            if (post != null)
            {
                return(File(post.ImageData, post.ImageMimeType));
            }
            else
            {
                return(null);
            }
        }