Example #1
0
        public PlaceEntity CreatePlaceEntity(InfoPlacePostDTO info)
        {
            PlaceEntity placeDomain = new PlaceEntity()
            {
                Name     = info.Name,
                Location = new GeoCoordinate(info.Latitude, info.Longitude)
            };

            return(placeDomain);
        }
Example #2
0
        public InfoEntity CreateInfoEntity(InfoPlacePostDTO info)
        {
            InfoEntity infoDomain = new InfoEntity()
            {
                time       = info.startTime,
                endTime    = info.endTime,
                content    = info.content,
                categoryId = info.categoryId,
                userId     = info.userId
            };

            return(infoDomain);
        }