Blog.DAL.TagDAL.PobierzWszystkie C# (CSharp) Method

PobierzWszystkie() public method

public PobierzWszystkie ( ) : List
return List
        public List<TagModel> PobierzWszystkie()
        {
            using (LinqTodbBlogDataContext context = new LinqTodbBlogDataContext())
            {
                var l = from a in context.Tagis
                        select new TagModel
                        {
                            IdPosta = a.id_posta,
                            Keywords = a.keywords,
                            Desc = a.description
                        };

                return l.ToList();
            }
        }