Exemplo n.º 1
0
        public async Task <ActionResult> Categories(int id)
        {
            try
            {
                byte[] image = await _imagesService.Category(id);

                return(Image(image));
            }
            catch (KeyNotFoundException)
            {
                return(HttpNotFound());
            }
        }