예제 #1
0
        public bool Validate()
        {
            var IsValid = true;

            if (string.IsNullOrWhiteSpace(FilmId.ToString()))
            {
                IsValid = false;
            }
            if (string.IsNullOrWhiteSpace(FilmName))
            {
                IsValid = false;
            }

            return(IsValid);
        }
 public override string Serialize()
 {
     return(string.Join(";", FilmId.ToString(), FilmFan, Rating.ToString()));
 }