public static CourtJson FromCourt(Court court) { CourtJson json = new CourtJson(); if (null != court) { json.id = court.CourtId.ToString().Replace("-", ""); json.name = court.Name; json.latitude = court.Latitude.Value; json.longitude = court.Longitude.Value; } return(json); }
public static CourtJson FromCourt(Court court) { CourtJson json = new CourtJson(); if (null != court) { json.id = court.CourtId.ToString().Replace("-", ""); json.name = court.Name; json.latitude = court.Latitude.Value; json.longitude = court.Longitude.Value; } return json; }