Apachai.Apachai.ShowPicture C# (CSharp) Method

ShowPicture() private method

private ShowPicture ( IManosContext ctx, string id ) : void
ctx IManosContext
id string
return void
        public void ShowPicture(IManosContext ctx, string id)
        {
            if (string.IsNullOrEmpty (id) || !File.Exists (Path.Combine (imgDirectory, id))) {
                ctx.Response.StatusCode = 404;
                ctx.Response.End ();
                return;
            }

            HttpServing (ctx, HtmlPaths.HomePage);
        }