public Task <IActionResult> GetMenus() { return(Task.Factory.StartNew <IActionResult>(() => { var rows = menuRepository .GetHomeMenusByTreeView(m => m.Activable && m.Visiable && string.IsNullOrEmpty(m.ParentId)) .OrderBy(m => m.SortIndex).ToList(); return Json(ExcutedResult.SuccessResult(rows)); })); }