private bool CheckWfs(string uuid, DatasetDelivery datasetDelivery) { if (datasetDelivery != null) { bool hasWfs = datasetDelivery.IsGoodOrUseable(); bool hasWcs = false; var distros = GetDistributions(uuid); if (distros != null) { foreach (var distro in distros) { string protocol = distro?.Protocol; if (!string.IsNullOrEmpty(protocol) && protocol.Contains("WCS")) { hasWcs = true; } } if (hasWfs || hasWcs) { return(true); } } } return(false); }
public Guid CreateDatasetDelivery(string deliveryStatusId, string note, bool autoupdate = true) { var datasetDelivery = new DatasetDelivery(deliveryStatusId, note, autoupdate); _dbContext.DatasetDeliveries.Add(datasetDelivery); _dbContext.SaveChanges(); return(datasetDelivery.DatasetDeliveryId); }
public DatasetDelivery CreateDatasetDelivery(string deliveryStatusId, string note, bool autoupdate = true) { var datasetDelivery = new DatasetDelivery(deliveryStatusId, note, autoupdate); return(datasetDelivery); }