todo-app-backend/TodoApp/API/Models/TodoItem.cs

22 lines
423 B
C#
Raw Normal View History

2022-02-08 22:12:18 +01:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
namespace TodoApp.API.Models
{
public class TodoItem
{
public long ID { get; set; }
[Required]
public string Name { get; set; }
[Required]
public bool Done { get; set; }
public string Description { get; set; }
}
}