public bool UpdateExisitingContent(string originalTitle, StreamingContent newContent) { StreamingContent oldContent = GetContentByTitle(originalTitle);//string argument if (oldContent != null) { oldContent.Title = newContent.Title; oldContent.Description = newContent.Description; oldContent.StarRating = newContent.StarRating; oldContent.MaturityRating = newContent.MaturityRating; oldContent.Genre = newContent.Genre; return(true); } else { return(false); } }
public bool DeleteExistingContent(StreamingContent existingContent) { bool deleteResult = _contentDirectory.Remove(existingContent); return(deleteResult); }