Dev2.Runtime.ServiceModel.WebServices.ApplyPath C# (CSharp) Method

ApplyPath() public method

public ApplyPath ( string args, System.Guid workspaceId, System.Guid dataListId ) : WebService
args string
workspaceId System.Guid
dataListId System.Guid
return Dev2.Runtime.ServiceModel.Data.WebService
        public WebService ApplyPath(string args, Guid workspaceId, Guid dataListId)
        {
            var service = new WebService();
            try
            {
                service = JsonConvert.DeserializeObject<WebService>(args);
                service.ApplyPath();
                var oldResult = service.RequestResponse;
                service.RequestResponse = service.JsonPathResult;
                service.Recordsets = FetchRecordset(service, true);
                service.RequestResponse = oldResult;
            }
            catch(Exception ex)
            {
                RaiseError(ex);
                if(service.Recordsets.Count > 0)
                {
                    service.Recordsets[0].HasErrors = true;
                    service.Recordsets[0].ErrorMessage = ex.Message;
                }

                service.JsonPathResult = ex.Message;
            }

            return service;
        }