Apachai.Apachai.FetchRecentPictures C# (CSharp) Method

FetchRecentPictures() private method

private FetchRecentPictures ( IManosContext ctx, string id ) : void
ctx IManosContext
id string
return void
        public void FetchRecentPictures(IManosContext ctx, string id)
        {
            if (string.IsNullOrEmpty (id))
                ctx.Response.HandleEmptyJson ();

            var list = store.GetImagesOfUserFromPic (id, 10);
            var json = '[' + list.Select (e => '"' + e + '"').Aggregate ((e1, e2) => e1 + ',' + e2) + ']';
            ctx.Response.HandleJson (json);
        }