Exemple #1
0
        //episode

        public bool UpdateExistingContent(string originalTitle, StreamingContent newContentValues)
        {
            StreamingContent oldContent = GetContentByTitle(originalTitle);

            if (oldContent != null)
            {
                oldContent.Title          = newContentValues.Title;
                oldContent.Description    = newContentValues.Description;
                oldContent.StarRating     = newContentValues.StarRating;
                oldContent.TypeOfGenre    = newContentValues.TypeOfGenre;
                oldContent.MaturityRating = newContentValues.MaturityRating;

                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #2
0
 public bool RemoveContentFromList(StreamingContent content)
 {
     return(_streamingContentList.Remove(content));
 }
Exemple #3
0
 public void AddToList(StreamingContent content)
 {
     _streamingContentList.Add(content);
 }