コード例 #1
0
        /// <summary>
        /// 应答详情
        /// </summary>
        /// <param name="requirementid">需求id</param>
        /// <returns>JsonResult.</returns>
        public JsonResult AcceptRequirement(int requirementid)
        {
            using (ResponseResult <BusinessReplyDetailModel> result = new ResponseResult <BusinessReplyDetailModel>())
            {
                BusinessReplyDetailModel model = repository.GetReplyDetail(requirementid);
                if (model != null)
                {
                    result.Entity    = model;
                    result.IsSuccess = true;
                }
                else
                {
                    result.IsSuccess = false;
                    result.Message   = string.Format("{0} - " + ResponeString.ParmetersInvalidMessage, requirementid.ToString());
                }

                return(Json(result));
            }
        }