コード例 #1
0
        public JsonResult DeleteQuestionnaire(Guid id)
        {
            JsonResult result = new JsonResult();

            try
            {
                bool isSuccess = questionnaireService.DeleteQuestionnaire(id);
                log.Info("删除成功");
            }
            catch (Exception e)
            {
                log.Error(e.Message);
            }
            finally
            {
                result = Json(new { msg = "删除成功" }, JsonRequestBehavior.AllowGet);
            }
            return(result);
        }