public IActionResult GetLogInfo() { try { _data = _service.GetLogInfo(); } catch (Exception ex) { return(BadRequest(ex.Message)); } var json = new JsonResponse { data = _data, msg = _msg, id = _id, hasErrors = _hasErrors }; return(Ok(json)); }