Esempio n. 1
0
        public async Task <IActionResult> Create([Bind("blog_id,baslik,aciklama,olusturulma,imageUrl,kategori_id,blog_silme")] Blog blog)
        {
            if (ModelState.IsValid)
            {
                await _services.BlogKaydet(blog);

                //_context.Add(blog);
                //await _context.SaveChangesAsync();
                return(RedirectToAction(nameof(Index)));
            }
            return(View(blog));
        }