public List <Enitty.Entities.Town> Map(Model.Town.Town town) { if (town == null || town.Status != "0") { return(null); } return(ResultMap(town.Result)); }
public Model.Town.Town Map(List <Enitty.Entities.Town> towns) { if (towns == null || towns.Count == 0) { return(null); } Model.Town.Town city = new Model.Town.Town() { Status = "0", Msg = "", Result = ResultMap(towns), }; return(city); }