Пример #1
0
        public async Task <JsonResult> CheckMenuItemNameDup([FromBody] string menuItemName)
        {
            if (menuItemName.IsNullOrWhiteSpace())
            {
                return(AjaxHelper.JsonResult(HttpStatusCode.BadRequest, "菜单项名不能为空"));
            }
            var result = await _menuItemService.CheckMenuItemNameDupAsync(menuItemName);

            return(AjaxHelper.JsonResult(HttpStatusCode.OK, "成功", result));
        }