public IEnumerable <StationModel> Stations() { List <StationModel> modelList = new List <StationModel>(); var dataModel = _bicycleRepository.Stations(); if (dataModel != null) { foreach (var item in dataModel) { StationModel model = new StationModel(); model.lat = item.Station_Lat.Value; model.lng = item.Station_Long.Value; model.sname = item.Station_Name; modelList.Add(model); } } return(modelList); }