public LicenceController( ILicenceService service, IResponseHelper response) { _service = service; _response = response; }
public ServiceProvider(IDataAccess dataConnection) { _dataConnection = dataConnection; _licenceService = new LicenceService(_dataConnection); _telemetryService = new TelemetryService(_dataConnection); _userService = new UserService(_dataConnection); }
public SldrTechnicalDataService(ILicenceService licenceService) { _licenceService = licenceService; }
public ChannelController(ILicenceService licenceService) { _licenceService = licenceService; }
private void importStations(XDocument doc, ILicenceService service) { var stations = new List<Station>(); foreach(var x in doc.Descendants("stations")) { var station = new Station { Location = x.Element("location").Value, ProvinceCode = x.Element("province_code").Value, Latitude = (decimal)x.Element("latitude"), Longitude = (decimal)x.Element("longitude"), SiteElevation = (int)x.Element("site_elevation"), StructureHeight = (int)x.Element("structure_height"), ZoneEnhancerIndicator = x.Element("zone_enhancer_indicator").Value, DateLastModifications = Convert.ToDateTime(x.Element("date_last_modifications").Value), Channels = loadChannels(x) }; var match = stations.FirstOrDefault(y => y.Location == station.Location); if (match == null) { stations.Add(station); } else { foreach (var channel in station.Channels) { if (!match.Channels.Any(c => c.TxAntAzimuth == channel.TxAntAzimuth)) { match.Channels.Add(channel); } } } } foreach (var station in stations) { service.Add(station); } service.SaveChanges(); }
public LicenceController(ILicenceService licenseService) { _licenseService = licenseService; }
public StationController(ILicenceService licenceService) { _licenceService = licenceService; }
public LicenceController(ILicenceService service) { _service = service; }
public ValuesController(ILicenceService licenceService, ITemplateService templateService) { _licenceService = licenceService; _templeService = templateService; }