示例#1
0
 public string UpdateMenu(ModuleElement model)
 {
     try
     {
         _app.UpdateMenu(model);
     }
     catch (Exception ex)
     {
         Result.Code    = 500;
         Result.Message = ex.Message;
     }
     return(JsonHelper.Instance.Serialize(Result));
 }
示例#2
0
        public Response UpdateMenu(ModuleElement obj)
        {
            var result = new Response();

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

            return(result);
        }