Initial source commit 🎉

Set up a new ASP.NET Core Web API project targeting .NET 10.0. Added basic Todo model, in-memory database context, and CRUD endpoints for Todo items based on tutorial. Included configuration files, launch settings, and .gitignore for Visual Studio and JetBrains IDEs.
This commit is contained in:
Tony Bark 2025-11-27 12:15:50 -05:00
commit 3c43ce2f71
11 changed files with 646 additions and 0 deletions

14
Todo.cs Normal file
View file

@ -0,0 +1,14 @@
namespace Bark.Api;
public class Todo {
public int Id { get; set; }
public string? Name { get; set; }
public bool IsCompleted { get; set; }
}
class TodoDb : DbContext
{
public TodoDb(DbContextOptions<TodoDb> options) : base(options) { }
public DbSet<Todo> Todos => Set<Todo>();
}