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)); }
public ActionResult Get(string id) { var dto = _menuAppService.Get(id); return(Json(dto)); }
public Menu Get(Guid id) { return(_service.Get(id)); }
public async Task <IActionResult> Get(string id) { var menu = await _menuAppService.Get(Guid.Parse(id)); return(Json(menu)); }