示例#1
0
        public override void Create(PodCast payLoad)
        {
            var temporary = GetAll().ToList();

            temporary.Add(payLoad);
            _datamanager.Save(temporary, _podcastFileLocation);
        }
示例#2
0
        public virtual void Create(T payLoad)
        {
            var temporary = GetAll().ToList();

            temporary.Add(payLoad);
            _datamanager.Save(temporary, _fileLocation);
        }
示例#3
0
        public void Create(List <Episode> episodes, Guid podscastId)
        {
            var temporary = GetAll().Where(x => x.PodcastID != podscastId).ToList();

            temporary.AddRange(episodes);
            _datamanager.Save(temporary, _episodeFileLocation);
        }
示例#4
0
        public override void Create(Category payLoad)
        {
            var temporary = GetAll().ToList();

            temporary.Add(payLoad);
            _datamanager.Save(temporary, _categoryFileLocation);
        }