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)); }
public ExceptionLogViewItemProxy GetException(int exceptionLogID) { ExceptionLogViewItem item = ExceptionLogView.GetExceptionLogViewItem(TSAuthentication.GetLoginUser(), exceptionLogID); return(item.GetProxy()); }