// POST: Service/Services/DbMethods public ServiceMethodList DbMethods(string args, Guid workspaceId, Guid dataListId) { var result = new ServiceMethodList(); if(!string.IsNullOrEmpty(args)) { try { Dev2JsonSerializer serialiser = new Dev2JsonSerializer(); var source = serialiser.Deserialize<DbSource>(args); var actualSource = _resourceCatalog.GetResource<DbSource>(workspaceId, source.ResourceID); actualSource.ReloadActions = source.ReloadActions; var serviceMethods = FetchMethods(actualSource); result.AddRange(serviceMethods); } catch(Exception ex) { RaiseError(ex); result.Add(new ServiceMethod(ex.Message, ex.StackTrace)); } } return result; }