Skip to content

Commit

Permalink
Merge remote-tracking branch 'template/main' into l07
Browse files Browse the repository at this point in the history
# Conflicts:
#	ToDoList/src/ToDoList.WebApi/Program.cs
#	ToDoList/tests/ToDoList.Test/UnitTests/GetTests.cs
  • Loading branch information
Hijtec committed Nov 12, 2024
2 parents 9b87f8a + 52a3759 commit f011cf6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ToDoList/src/ToDoList.WebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
var builder = WebApplication.CreateBuilder(args);
{
//WebApi services
builder.Services.AddControllers();
builder.Services.AddControllers(); // pridalo ToDoItemsController
builder.Services.AddSwaggerGen();

//Persistence services
builder.Services.AddDbContext<ToDoItemsContext>();
builder.Services.AddScoped<IRepository<ToDoItem>, ToDoItemsRepository>();
builder.Services.AddDbContext<ToDoItemsContext>(); // pridalo ToDoItemsContext
builder.Services.AddScoped<IRepository<ToDoItem>, ToDoItemsRepository>(); // pridalo ToDoItemsRepository
}

var app = builder.Build();
Expand Down
Binary file added presentations/C#3 Podzim 2024.pptx.pdf
Binary file not shown.
Binary file removed presentations/Lekce01-03.pdf
Binary file not shown.
Binary file removed presentations/Lekce04-05.pdf
Binary file not shown.

0 comments on commit f011cf6

Please sign in to comment.