Beispiel #1
0
        public IActionResult Add(Menu model)
        {
            var rst = new ReturnResult <bool>();

            using var bll = new MenuBll();
            if (model.id == 0)
            {
                model.menu_id = EncryptHelper.CreateGuid();
                rst           = bll.Add(model);
            }
            else
            {
                rst = bll.Update(model);
            }

            return(Json(rst));
        }