public dynamic PostTicketingRequest(dynamic value) { dynamic response = new ExpandoObject(); try { response = Common.CommonUtils.RestClient_PostData( string.Join("", (string)CommonUtils.AppConfig.RestEndPoints.CoreBaseEndPoint, "PostTicketingRequest.ashx"), CommonUtils.JsonSerialize(value), "Post", new Dictionary <string, string>()); response = (response.Data != null) ? ResponseValidationHelper.DynamicResponsefilteronSchemaBasis(response.Data, CommonUtils.ResponseFilterConfig.Post_Add_PostTicketingJson) : response; } catch (Exception ex) { response.Success = false; response.Message = ex.Message; LogManager.Log(ex, LogType.Error); } return(response); }
public dynamic SearchPostTicketingRequest(dynamic value) { dynamic response = new ExpandoObject(); try { string query = ""; foreach (var key in value) { dynamic attrval = value[key.Name]; if (attrval != null) { if (key.Name == "Page") { query = query + "&Index=" + attrval; } else { query = query + "&" + key.Name + "=" + attrval; } } } response = Common.CommonUtils.RestClient_GET(string.Join("", (string)CommonUtils.AppConfig.RestEndPoints.CoreBaseEndPoint, "PostTicketingRequest.ashx?", query)); //response = (response.Data != null) ? CommonUtils.RetainPropertiesList(response.Data, // CommonUtils.SplitStringToList((string)CommonUtils.ResponseFilterConfig.Post_Search_PostTicketingRequest)) : response; response = (response.Data != null) ? ResponseValidationHelper.DynamicResponsefilteronSchemaBasis(response.Data, CommonUtils.ResponseFilterConfig.Post_Search_PostTicketingJson) : response; } catch (Exception ex) { response.Success = false; response.Message = ex.Message; LogManager.Log(ex, LogType.Error); } return(response); }