BCR.BCR.GetIcon C# (CSharp) Method

GetIcon() public static method

public static GetIcon ( string key, IResponseFormatter response ) : Response
key string
response IResponseFormatter
return Nancy.Response
        public static Response GetIcon(string key, IResponseFormatter response)
        {
            var image = ComicBook.PublisherIcons.GetImage(key);
            if (image == null)
            {
                return response.AsRedirect("/original/Views/spacer.png");
            }
            return response.FromStream(GetBytesFromImage(image), MimeTypes.GetMimeType(".jpg"));
        }