예제 #1
0
        public static List <AuthorViewModel> GetAllAuthorsView()
        {
            List <AuthorViewModel> authorModels = new List <AuthorViewModel>();
            List <Author>          authors      = DBHelper.GetAllAuthors();

            foreach (var author in authors)
            {
                authorModels.Add(ModelConverter.AuthorToView(author));
            }
            return(authorModels);
        }