Пример #1
0
 public virtual bool Equals(CourseSubjectTranslation other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Equals(Subject.Id, other.Subject.Id) && Equals(Language.Id, other.Language.Id));
 }
Пример #2
0
 public virtual void DeleteTranslation(CourseSubjectTranslation translation)
 {
     _translations.Remove(translation);
 }
Пример #3
0
 public virtual void AddTranslation(CourseSubjectTranslation translation)
 {
     _translations.Add(translation);
 }