asp.net – AspnetCore – Empty -Structure

Blog Controller 1. I’ve the following code on my BlogControler.Cs (aspnet core 2.1): namespace FiorelloTask.Areas.AdminF.Controllers { [Area(“AdminF”)] public class BlogController : Controller { private AppDbContext _context; private IWebHostEnvironment _env; public BlogController(AppDbContext context, IWebHostEnvironment env) { _context = context; _env = env; } public IActionResult Index() { List<Blog> blogs = _context.Blogs.ToList(); return View(blogs); } public IActionResult … Read more