public async Task <ActionResult <object> > UpdateCommentById(int id, Comment comment) { bool user_state = false; bool modified = false; if (CheckUserState() > 0) { user_state = true; comment.time = DateTime.Now; modified = dao.UpdateCommentById(id, comment); } Dictionary <string, object> result = new Dictionary <string, object>(); result.Add("user_state", user_state); result.Add("modified", modified); return(result); }