예제 #1
0
        public IActionResult Edit(Guid ID)
        {
            ViewBag.ParentList = _MenuAppService.QueryList(a => a.Type == (int)Vic.Core.Utils.Enum.AM_Enum.MenuTypeEnum.ParentMenu || a.Type == (int)Vic.Core.Utils.Enum.AM_Enum.MenuTypeEnum.ChildMenu);
            MenuDto currModel = _MenuAppService.Get(ID);

            return(View(currModel));
        }
        public ActionResult Get(Guid id)
        {
            var dto = _menuAppService.Get(id);
            var a   = Json(dto);

            return(Json(dto));
        }
예제 #3
0
        public ActionResult Get(string id)
        {
            var dto = _menuAppService.Get(id);

            return(Json(dto));
        }
예제 #4
0
 public Menu Get(Guid id)
 {
     return(_service.Get(id));
 }
예제 #5
0
        public async Task <IActionResult> Get(string id)
        {
            var menu = await _menuAppService.Get(Guid.Parse(id));

            return(Json(menu));
        }