public override minzoom_output getMinZoom() { minzoom_output result = null; tiles zoom_min = db.Query <tiles>("SELECT * FROM tiles ORDER BY zoom_level ASC LIMIT 1").FirstOrDefault(); if (zoom_min != null) { result = new minzoom_output(zoom_min.zoom_level); } return(result); }
public minzoom_output getMinZoom() { minzoom_output result = null; try { List<int> zoomLevels = getZoomLevels(); if (zoomLevels.Count > 0) { result = new minzoom_output(zoomLevels.ElementAt(0)); } } catch (Exception) { // Add log } return result; }
public override minzoom_output getMinZoom() { minzoom_output result = null; try { List <int> zoomLevels = getZoomLevels(); if (zoomLevels.Count > 0) { result = new minzoom_output(zoomLevels.ElementAt(0)); } } catch (Exception) { // Add log } return(result); }
public minzoom_output getMinZoom() { minzoom_output result = null; tiles zoom_min = db.Query<tiles>("SELECT * FROM tiles ORDER BY zoom_level ASC LIMIT 1").FirstOrDefault(); if (zoom_min != null) { result = new minzoom_output(zoom_min.zoom_level); } return result; }