public Status FindStatusById(int id)
{
try
{
return db.StatusSet.Single(m => m.Id == id);
}
catch (InvalidOperationException)
{
return null;
}
}