public async Task <bool> AddStation(Station station) { try { if (station != null) { IStationDao stationDao = GetIStationDao(); if (station.CommunityId == 0 && station.Community != null) { station.CommunityId = station.Community.Id; } if (station.TypeId == 0 && station.StationType != null) { station.TypeId = station.StationType.Id; } if (station.Creator == 0 && station.User != null) { station.Creator = station.User.Id; } return(await stationDao.AddStationAsync(station)); } return(false); } catch (Exception) { return(false); } }