Beispiel #1
0
 public static string CheckIfSame(this string str, string oldname = null)
 {
     if (_podcastRepository.GetAll().ToList().Count > 0)
     {
         if (_podcastRepository.GetPodcast(str) != null && oldname != str)
         {
             {
                 throw new SameValueException();
             }
         }
     }
     return(str);
 }
 public PodCast GetPodCast(string name)
 {
     return(_podcastRepository.GetPodcast(name));;
 }