public virtual async Task <BlogPostModel> PrepareBlogPostModel(BlogPostModel blogPostmodel, BlogPost blogPost)
        {
            //Store
            await blogPostmodel.PrepareStoresMappingModel(blogPost, _storeService, true);

            return(blogPostmodel);
        }
        public virtual async Task <BlogPostModel> PrepareBlogPostModel(BlogPostModel blogPostmodel, BlogPost blogPost)
        {
            //Store
            await blogPostmodel.PrepareStoresMappingModel(blogPost, _storeService, true, _workContext.CurrentCustomer.StaffStoreId);

            return(blogPostmodel);
        }
        public virtual async Task <BlogPostModel> PrepareBlogPostModel()
        {
            var model = new BlogPostModel();
            //Stores
            await model.PrepareStoresMappingModel(null, _storeService, false);

            //default values
            model.AllowComments = true;
            //locales
            return(model);
        }
示例#4
0
 public virtual BlogPostModel PrepareBlogPostModel(BlogPostModel blogPostmodel, BlogPost blogPost)
 {
     //Store
     blogPostmodel.PrepareStoresMappingModel(blogPost, true, _storeService);
     return(blogPostmodel);
 }
示例#5
0
 public virtual BlogPostModel PrepareBlogPostModel(BlogPostModel blogPostmodel)
 {
     blogPostmodel.PrepareStoresMappingModel(null, true, _storeService);
     return(blogPostmodel);
 }
        public virtual async Task <BlogPostModel> PrepareBlogPostModel(BlogPostModel blogPostmodel)
        {
            await blogPostmodel.PrepareStoresMappingModel(null, true, _storeService);

            return(blogPostmodel);
        }