Beispiel #1
0
 public string GetPriorityColor(TodoItemPriority priority)
 {
     return(TodoItem.Priority switch
     {
         TodoItemPriority.Low => "bg-green-200",
         TodoItemPriority.Medium => "bg-orange-200",
         TodoItemPriority.High => "bg-red-200",
         _ => throw new ArgumentOutOfRangeException()
     });
Beispiel #2
0
 public TodoItemDto()
 {
     Status   = TodoItemStatus.OPEN;
     Priority = TodoItemPriority.MEDIUM;
 }