public bool UpdateExistingContent(string originalTitle, StreamingContent updatedContent) { StreamingContent oldContent = GetContentByTitle(originalTitle); if (oldContent != null) { oldContent.Title = updatedContent.Title; oldContent.RunTimeInMin = updatedContent.RunTimeInMin; oldContent.ReleaseDate = updatedContent.ReleaseDate; oldContent.IsFamilyFriendly = updatedContent.IsFamilyFriendly; oldContent.TypeOfGenre = updatedContent.TypeOfGenre; return(true); } else { return(false); } }
public bool DeleteExistingContent(StreamingContent streamingContent) { bool deleteResult = _contentDirectory.Remove(streamingContent); return(deleteResult); }