File: Models\Todo.cs
Web Access
Project: src\src\Mvc\samples\MvcFormSample\MvcFormSample.csproj (MvcFormSample)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace MvcFormSample.Models;
 
public class Todo
{
    public string Name { get; set; } = string.Empty;
    public bool IsCompleted { get; set; } = false;
    public DateTime DueDate { get; set; } = DateTime.Now.Add(TimeSpan.FromDays(1));
}