C#C
C#7d ago
13 replies
kowal

ASP.NET Core MVC Structure

Hi everyone! I’m a Computer Science student currently wrapping up a project built with ASP.NET Core. As I’m finishing the development phase, I’d love to get some feedback on my project structure and architecture.

Is there anyone experienced in .NET who would be willing to take a quick look and let me know if my approach makes sense or if there's room for improvement? I’d really appreciate any advice! Thanks!

App.sln

─ App.Web
─ Areas/Identity/Pages/Account/
─ Login, Register, Logout

─ Controllers/
─ HomeController
─ GamesController
─ GroupsController
─ ProfileController
─ SettlementsController

─ Views/
─ Home/
─ Games/
─ Groups/
─ Profile/
─ Settlements/
─ Shared/

─ Models/ (ViewModels)
─ Hubs/ (SignalR - GroupChatHub)
─ Background/ (GameCleanupHostedService)
─ Program.cs

─ App.Data
─ Models/
─ ApplicationUser
─ Game, GameParticipant
─ Group, GroupMember, GroupMessage
─ Settlement
─ Constants

─ TeamownikDbContext.cs

─ App.Services
─ Interfaces/
─ IGameService
─ IGroupService
─ ISettlementService
─ IStatisticsService

─ Implementation/
─ GameService
─ GroupService
─ SettlementService
─ StatisticsService
Was this page helpful?