public virtual CurrentAiringId Create(string prefix) { if (!Regex.IsMatch(prefix, "(^[A-Z]{4}?)$")) { throw new ArgumentException("must be four capital letters only", "prefix"); } if (getAiringIdQuery.Get(prefix) != null) { throw new ArgumentException("already exists", "prefix"); } return(BuildAiringId(prefix, 1)); }
public List <CurrentAiringId> GetAllCurrentAiringIds() { return(query.Get().ToList() .ToBusinessModel <List <DLModel.CurrentAiringId>, List <CurrentAiringId> >()); }