Created
November 18, 2016 18:18
-
-
Save dimlucas/b7a212848a15c9b2d2fbcf5626e51cdb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace LooseCoupling.Models | |
{ | |
public class ToDo | |
{ | |
public int Id { get; set; } | |
public string Title { get; set; } | |
public bool Completed { get; set; } | |
public override string ToString() | |
{ | |
string completed = Completed ? "COMPLETE" : "INCOMPLETE"; | |
return String.Format("{0}. {1} {2}", Id, Title, completed); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment