public async Task <IActionResult> Index(int id)
        {
            var temp = await _fileProxy.Get(id);

            var file = new FileParameters {
                Image = Convert.ToBase64String(temp)
            };

            return(View(file));
        }
Example #2
0
        public async Task <IActionResult> Index(int id)
        {
            var user = (TokenUser)HttpContext.Items["User"];

            var temp = await _fileProxy.Get(user.Token, id);

            var file = new FileParameters {
                Image = Convert.ToBase64String(temp)
            };

            return(View(file));
        }