コード例 #1
0
        public static string GetExceptionLogViewItem(RestCommand command, int exceptionLogID)
        {
            ExceptionLogViewItem exceptionLogViewItem = ExceptionLogView.GetExceptionLogViewItem(command.LoginUser, exceptionLogID);

            if (exceptionLogViewItem.OrganizationID != command.Organization.OrganizationID)
            {
                throw new RestException(HttpStatusCode.Unauthorized);
            }
            return(exceptionLogViewItem.GetXml("ExceptionLogViewItem", true));
        }
コード例 #2
0
        public ExceptionLogViewItemProxy GetException(int exceptionLogID)
        {
            ExceptionLogViewItem item = ExceptionLogView.GetExceptionLogViewItem(TSAuthentication.GetLoginUser(), exceptionLogID);

            return(item.GetProxy());
        }