コード例 #1
0
ファイル: CourtJson.cs プロジェクト: nbclark/SportsLink
        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);
        }
コード例 #2
0
ファイル: CourtJson.cs プロジェクト: nbclark/SportsLink
        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;
        }