示例#1
0
        public async Task <ActionResult> Edit(MasterMenu model)
        {
            try
            {
                MasterMenuRepository Repository = new MasterMenuRepository();
                var result = await Repository.EditMasterMenu(model.MenuId, model.MenuName, model.MenuURL, model.MenuIcon, model.MenuParentId, User.Identity.Name);

                if (result == true)
                {
                    return(await GetListMasterMenu());
                }
                else
                {
                    return(View(result));
                }
            }
            catch
            {
                return(View(false));
            }
        }