public async Task <ActionResult <object> > GetCommentByUserId(int page, int size) { bool user_state = false; object comments = null; if (CheckUserState() > 0) { user_state = true; comments = dao.GetCommentsByUserId(long.Parse(Request.Cookies["user"]), page, size); } Dictionary <string, object> result = new Dictionary <string, object>(); result.Add("user_state", user_state); result.Add("comments", comments); return(result); }