Beispiel #1
0
        public ActionResult GetPlistExceptionLogs(GetPlistExceptionLogs requestData)
        {
            if (!ModelState.IsValid)
            {
                return(ModelState.ToJsonResult());
            }
            var exceptionlogs = GetRequiredService <ILoggingService>().GetPlistExceptionLogs(requestData.Filters, requestData);

            Debug.Assert(requestData.Total != null, "requestData.total != null");
            var data = new MiniGrid <ExceptionLog> {
                total = requestData.Total.Value, data = exceptionlogs
            };

            return(this.JsonResult(data));
        }
        public ActionResult GetPlistExceptionLogs(GetPlistExceptionLogs requestData)
        {
            if (!ModelState.IsValid)
            {
                return ModelState.ToJsonResult();
            }
            var exceptionlogs = GetRequiredService<ILoggingService>().GetPlistExceptionLogs(requestData.Filters, requestData);

            Debug.Assert(requestData.Total != null, "requestData.total != null");
            var data = new MiniGrid<ExceptionLog> { total = requestData.Total.Value, data = exceptionlogs };

            return this.JsonResult(data);
        }