Skip to content

Instantly share code, notes, and snippets.

@dimlucas
Created November 18, 2016 18:18
Show Gist options
  • Save dimlucas/b7a212848a15c9b2d2fbcf5626e51cdb to your computer and use it in GitHub Desktop.
Save dimlucas/b7a212848a15c9b2d2fbcf5626e51cdb to your computer and use it in GitHub Desktop.
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