Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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;
        }