public RequestedItem SubmitRequestItem(string itemId, string requestId) { try { string itemUrl = startURL + @"sc_req_item"; string itemBody = "{'request':'" + requestId + "', 'cat_item':'" + itemId + "'}"; var result = (RequestedItems)uploadServiceNow(itemUrl, typeof(RequestedItems), itemBody); return(result.result[0]); } catch { RequestedItem u = new RequestedItem(); u.noResultData = true; return(u); } }
public RequestedItem SubmitRequestItem(string itemId, string requestId) { try { string itemUrl = startURL + @"sc_req_item"; string itemBody = "{'request':'" + requestId + "', 'cat_item':'" + itemId + "'}"; var result = (RequestedItems)uploadServiceNow(itemUrl, typeof(RequestedItems), itemBody); return result.result[0]; } catch { RequestedItem u = new RequestedItem(); u.noResultData = true; return u; } }