public async Task <ActionResult> AddQuery(QueryModel queryModel) { var query = await ProcessService.AddQuery(new RequestLibrary.Models.QueryModel { Question = queryModel.Question, UserId = queryModel.UserId }); if (query.IsSucced) { return(Json(new { msg = 200, data = query }, JsonRequestBehavior.AllowGet)); } return(Json(new { msg = 500, data = query }, JsonRequestBehavior.AllowGet)); }