コード例 #1
0
        public OxiteViewModelItems <File> ListByPost(Post post)
        {
            if (post == null)
            {
                return(null);
            }

            IEnumerable <File> files = blogsFileService.GetFiles(post);

            return(new OxiteViewModelItems <File>(files)
            {
                Container = post
            });
        }
コード例 #2
0
        public OxiteViewModelItems <File> ListByPost(PostAddress postAddress)
        {
            Post post = postService.GetPost(postAddress);

            if (post == null)
            {
                return(null);
            }

            IEnumerable <File> files = fileService.GetFiles(post);

            return(new OxiteViewModelItems <File>(files)
            {
                Container = post
            });
        }