public Todo GetTodo(int id) { Todo todo = db.Todoes.Find(id); if (todo == null) { throw new HttpResponseException(Request.CreateResponse(HttpStatusCode.NotFound)); } return todo; }