public bool Save()
        {
            RoutePointMediaObjectManager manager = new RoutePointMediaObjectManager();

            _id = manager.Save(this);
            return(!string.IsNullOrEmpty(_id));
        }
Пример #2
0
        internal void AddMediaItem(string mediaId, MediaObjectTypeEnum mediaType)
        {
            ViewRoutePointMediaObject media = new ViewRoutePointMediaObject();

            media.RoutePointMediaObjectId = mediaId;
            media.RoutePointId            = Id;
            media.Version   = 1;
            media.MediaType = mediaType;
            mediaManager.Save(media);
            load(Id);
        }