public static TextPaper Read(PaperType paperType, int id) { switch (paperType) { case PaperType.Book: return(BookStorage.GetById(id) as TextPaper); break; case PaperType.Jornal: return(JornalStorage.GetById(id) as TextPaper); break; case PaperType.NewsPaper: return(NewsPaperStorage.GetById(id) as TextPaper); break; } return(null); }