Ejemplo n.º 1
0
        private void GetAuditResults()
        {
            var audit = new AuditChecks();

            Localization.LocalizeDataGrid(ref dgResults, LocalResourceFile);
            dgResults.DataSource = audit.DoChecks();
            dgResults.DataBind();
        }
Ejemplo n.º 2
0
        public HttpResponseMessage GetAuditCheckResults()
        {
            try
            {
                var audit    = new AuditChecks();
                var results  = audit.DoChecks();
                var response = new
                {
                    Success = true,
                    Results = results
                };

                return(Request.CreateResponse(HttpStatusCode.OK, response));
            }
            catch (Exception exc)
            {
                Logger.Error(exc);
                return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, exc));
            }
        }