diff --git a/WF_EF_Api/Contextlib/DbCommentaryManager.cs b/WF_EF_Api/Contextlib/DbCommentaryManager.cs index c498637..c866245 100644 --- a/WF_EF_Api/Contextlib/DbCommentaryManager.cs +++ b/WF_EF_Api/Contextlib/DbCommentaryManager.cs @@ -10,12 +10,12 @@ using System.Threading.Tasks; namespace Contextlib { - public class DbCommentManager : ICommentService + public class DbCommentaryManager : ICommentService { private WTFContext _context; private GenericRepository _repo; - public DbCommentManager(WTFContext context) + public DbCommentaryManager(WTFContext context) { _context = context ?? throw new ArgumentNullException(nameof(context), "Database context cannot be null."); _repo = new GenericRepository(context); diff --git a/WF_EF_Api/WfApi/Program.cs b/WF_EF_Api/WfApi/Program.cs index 524f35a..01c0c1e 100644 --- a/WF_EF_Api/WfApi/Program.cs +++ b/WF_EF_Api/WfApi/Program.cs @@ -8,12 +8,17 @@ using ServicesApi; var builder = WebApplication.CreateBuilder(args); //API builder.Services.AddScoped, UserService>(); -builder.Services.AddScoped, QuoteServiceStub>(); +builder.Services.AddScoped, QuoteServiceStub>(); // Retirer "Stub" //EF builder.Services.AddScoped(); builder.Services.AddScoped, DbUsersManager>(); +// builder.Services.AddScoped, DbQuoteManager>(); Quand DbQuoteManager sera présent +//builder.Services.AddScoped, DbCharacterManager>(); +//builder.Services.AddScoped, DbCommentaryManager>(); +//... + // Add services to the container. builder.Services.AddControllers();