Пример #1
0
        public static string GetExceptionLog(RestCommand command, int exceptionLogID)
        {
            ExceptionLog exceptionLog = ExceptionLogs.GetExceptionLog(command.LoginUser, exceptionLogID);

            if (exceptionLog.OrganizationID != command.Organization.OrganizationID)
            {
                throw new RestException(HttpStatusCode.Unauthorized);
            }
            return(exceptionLog.GetXml("ExceptionLog", true));
        }