コード例 #1
0
        public Response DeleteMenu([FromBody] string[] ids)
        {
            var result = new Response();

            try {
                _app.DelMenu(ids);
            } catch (Exception ex) {
                result.Code    = 500;
                result.Message = ex.InnerException?.Message ?? ex.Message;
            }

            return(result);
        }
コード例 #2
0
        public string DelMenu(params string[] ids)
        {
            try
            {
                _app.DelMenu(ids);
            }
            catch (Exception e)
            {
                Result.Code    = 500;
                Result.Message = e.Message;
            }

            return(JsonHelper.Instance.Serialize(Result));
        }