Exemplo n.º 1
0
        public IHttpContext GetProjects(IHttpContext ctx)
        {
            Dictionary <int, MProject> projs = SqliteDb.GetProjects();

            HttpResponseExtensions.SendResponse(ctx.Response, HttpStatusCode.Ok, JsonConvert.SerializeObject(projs, Formatting.Indented));
            return(ctx);
        }