Ejemplo n.º 1
0
        public JsonResult DealComplaint(long id)
        {
            Result result = new Result();

            try
            {
                _iComplaintService.DealComplaint(id);
                result.success = true;
            }
            catch (Exception ex)
            {
                result.msg = ex.Message;
            }
            return(Json(result));
        }
Ejemplo n.º 2
0
        public JsonResult DealComplaint(long id, string reply)
        {
            if (string.IsNullOrWhiteSpace(reply))
            {
                return(Json(new Result()
                {
                    success = false, msg = "回复内容不能为空!"
                }));
            }
            Result result = new Result();

            try
            {
                _iComplaintService.DealComplaint(id, reply);
                result.success = true;
            }
            catch (Exception ex)
            {
                result.msg = ex.Message;
            }
            return(Json(result));
        }