MVC (layered variant)

This commit is contained in:
Boris Milašinović
2026-04-26 13:40:03 +02:00
parent 0ee1b22f61
commit 1415005b82
50 changed files with 2130 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using Microsoft.AspNetCore.Mvc;
using MVC_SimpleCRUD_Layered.Application.People;
namespace MVC_SimpleCRUD_Layered.Web.Controllers;
public class PeopleSimpleController : Controller
{
private readonly IPeopleService peopleService;
public PeopleSimpleController(IPeopleService peopleService)
{
this.peopleService = peopleService;
}
public async Task<IActionResult> Index()
{
var people = await peopleService.GetAllForSimpleListAsync();
return View(people);
}
}