templates/todo/api/csharp-cosmos-sql/TodoList.cs (13 lines of code) (raw):
namespace SimpleTodo.Api;
public class TodoList
{
public TodoList(string name)
{
Name = name;
}
public string? Id { get; set; }
public string Name { get; set; }
public string? Description { get; set; }
public DateTimeOffset CreatedDate { get; set; } = DateTimeOffset.UtcNow;
public DateTimeOffset? UpdatedDate { get; set; }
}