Ejemplo n.º 1
0
        public void AddNomineeToCategory(AcademyAwardsCategory category, AcademyAwardsNominee nominee)
        {
            if (category.AcademyAwardsNominees == null)
            {
                category.AcademyAwardsNominees = new List <AcademyAwardsNominee>();
            }

            category.AcademyAwardsNominees.Add(nominee);
        }
Ejemplo n.º 2
0
 public void RemoveNomineeFromCategory(AcademyAwardsCategory category, AcademyAwardsNominee nominee)
 {
     category.AcademyAwardsNominees.Remove(nominee);
 }
Ejemplo n.º 3
0
 public void RemoveCategory(AcademyAwardsCategory category)
 {
     this._context.AcademyAwardsCategories.Remove(category);
 }
Ejemplo n.º 4
0
 public void AddCategory(AcademyAwardsCategory category)
 {
     this._context.AcademyAwardsCategories.Add(category);
 }