public IActionResult BlogDetails(int id)
        {
            var         blog  = bloglar.GetById(id);
            BlogDetails model = new BlogDetails()
            {
                baslik = blog.baslik,
                blog   = blog.blog,
                img    = blog.img
            };

            return(View(model));
        }
        public IActionResult OpenBlog(int id)
        {
            var model     = _blogImplementation.GetById(id);
            var BlogsLeft = new BlogModel
            {
                BlogLeftHeading     = model.BlogLeftHeading,
                BlogLeftCity        = model.BlogLeftCity,
                BlogLeftCountry     = model.BlogLeftCountry,
                BlogLeftDescription = model.BlogLeftDescription,
                BlogLeftCreated     = model.BlogLeftCreated,
                BlogLeftContent     = model.BlogLeftContent,
                BlogLeftSubContent  = model.BlogLeftSubContent,
                BlogSide            = model.BlogSide,
                ImageURLOne         = model.ImageURLOne,
                ImageURLTwo         = model.ImageURLTwo,
                ImageURLThree       = model.ImageURLThree,
            };

            return(View(BlogsLeft));
        }
示例#3
0
        // GET: Blog/Details/5
        public IActionResult Details(int id)
        {
            var blogPost = _blogService.GetById(id);

            var model = new BlogDetailModel()
            {
                Id            = blogPost.Id,
                Title         = blogPost.Title,
                P1BlogContent = blogPost.P1BlogContent,
                P1ImageUrl    = blogPost.P1ImageUrl,
                P2BlogContent = blogPost.P2BlogContent,
                P2ImageUrl    = blogPost.P2ImageUrl,
                P3BlogContent = blogPost.P3BlogContent,
                P3ImageUrl    = blogPost.P3ImageUrl,
            };



            return(View(model));
        }
示例#4
0
        public IActionResult EditBlog(int id)
        {
            var model = blog.GetById(id);

            return(View(model));
        }