public override void Create(PodCast payLoad) { var temporary = GetAll().ToList(); temporary.Add(payLoad); _datamanager.Save(temporary, _podcastFileLocation); }
public virtual void Create(T payLoad) { var temporary = GetAll().ToList(); temporary.Add(payLoad); _datamanager.Save(temporary, _fileLocation); }
public void Create(List <Episode> episodes, Guid podscastId) { var temporary = GetAll().Where(x => x.PodcastID != podscastId).ToList(); temporary.AddRange(episodes); _datamanager.Save(temporary, _episodeFileLocation); }
public override void Create(Category payLoad) { var temporary = GetAll().ToList(); temporary.Add(payLoad); _datamanager.Save(temporary, _categoryFileLocation); }