Пример #1
0
 public void AddProgram(string type, Creator creator, int id)
 {
     var currentUser = userRepository.GetUserWithId(id);
     if(type.Equals("film"))
     {
        filmRepository.AddFilm(creator, currentUser);
     }
     if(type.Equals("series"))
     {
         seriesRepository.AddSeries(creator, currentUser);
     }
 }