Initial commit: HelpDesk ICHN - .NET 10 backend + Next.js 16 frontend

This commit is contained in:
Nurfog committed 2026-09-10 10:20:51 -03:00
commit 359f0caf85
90 files changed
+13395

No files matched your search

@@ -0,0 +1,18 @@
using HelpDesk.Data.Repositories;
using Microsoft.Extensions.DependencyInjection;
namespace HelpDesk.Data;
public static class DependencyInjection
{
public static IServiceCollection AddRepositories(this IServiceCollection services)
{
services.AddScoped(typeof(IRepository<>), typeof(Repository<>));
services.AddScoped<IUserRepository, UserRepository>();
services.AddScoped<ITicketRepository, TicketRepository>();
services.AddScoped<ITicketCommentRepository, TicketCommentRepository>();
services.AddScoped<IGroupRepository, GroupRepository>();
services.AddScoped<ISLARepository, SLARepository>();
services.AddScoped<IKnowledgeBaseRepository, KnowledgeBaseRepository>();
return services;
}
}