public DataService GetServiceForFlow(string flowId, string request, ServiceType serviceType) { IList <DataService> services = ServiceDao.GetDataServicesForFlow(flowId, request, serviceType); return(CollectionUtils.IsNullOrEmpty(services) ? null : services[0]); // TODO: Return first if more than one? }
/// <summary> /// Return the data services for the flow with the specified flow id, or null /// if the id is not found. /// </summary> public IList <DataService> GetDataServicesForFlow(string flowId, bool includeServiceParameters) { return(ServiceDao.GetDataServicesForFlow(flowId, includeServiceParameters)); }
private void PostMapDataRequest(DataRequest request, string serviceId, bool paramsByName) { GetRequestArguments(request, paramsByName); request.Service = ServiceDao.GetDataService(serviceId); }