示例#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 IEnumerable <PodCast> GetAllPodCasts()
 {
     return(_podcastRepository.GetAll());
 }