Beispiel #1
0
        /// <summary>
        /// 回复意见
        /// </summary>
        /// <param name="advice"></param>
        /// <returns></returns>
        public static bool UpdateUserAdvice(AdviceInfoModel advice)
        {
            string result = OWZX.Data.Advice.UpdateUserAdvice(advice);

            if (result.EndsWith("成功"))
            {
                return(true);
            }
            return(false);
        }
Beispiel #2
0
        /// <summary>
        /// 回复意见
        /// </summary>
        /// <param name="adviceid"></param>
        /// <param name="reply"></param>
        /// <returns></returns>
        public ActionResult EditAdvice(int adviceid, string reply = "")
        {
            AdviceInfoModel advice = new AdviceInfoModel {
                Adviceid = adviceid, reply = reply, replyuid = WorkContext.Uid
            };
            bool result = Advice.UpdateUserAdvice(advice);

            if (result)
            {
                return(Content("1"));
            }
            else
            {
                return(Content("0"));
            }
        }
Beispiel #3
0
 /// <summary>
 /// 回复意见
 /// </summary>
 /// <param name="advice"></param>
 /// <returns></returns>
 public static string UpdateUserAdvice(AdviceInfoModel advice)
 {
     return(OWZX.Core.BSPData.RDBS.UpdateUserAdvice(advice));
 }