void Render(RequestUrlKind kind, String path, String search, TextWriter writer) { ExpandoObject loadPrms = new ExpandoObject(); loadPrms.Append(_controller.CheckPeriod(HttpUtility.ParseQueryString(search)), toPascalCase: true); SetSqlQueryParams(loadPrms); if (path.StartsWith("app/")) { _controller.RenderApplicationKind(kind, path, loadPrms, writer).Wait(); } else { _controller.RenderElementKind(kind, path, loadPrms, writer).Wait(); } }
void Export(String path, String search, HttpResponseBase response) { // HTTP GET try { ExpandoObject loadPrms = new ExpandoObject(); loadPrms.Append(_controller.CheckPeriod(HttpUtility.ParseQueryString(search)), toPascalCase: true); SetSqlParams(loadPrms); _controller.Export(path, TenantId, UserId, loadPrms, response).Wait(); } catch (Exception ex) { WriteExceptionStatus(ex, response); } }
void SetQueryStringAndSqlQueryParams(ExpandoObject prms) { SetUserTenantToParams(prms); SetUserCompanyToParams(prms); prms.Append(_controller.CheckPeriod(HttpUtility.ParseQueryString(this.Search)), toPascalCase: true); }