public IEnumerable <Todo> PostComment(int id, [FromBody] TodoComment todoComment) { var todos = Get(id); if (todos.Count() > 0) { foreach (var todo in todos) { todoComment.UpdatedOn = DateTime.Now.ToUniversalTime(); todoComment.TodoId = todo.Id; todosRepository.AddComment(todo, todoComment); break; } } return(Get()); }