Ejemplo n.º 1
0
 public IActionResult GetAjaxHandlerGrandChildTrees(string childTreeID)
 {
     if (!string.IsNullOrEmpty(childTreeID))
     {
         var childTrees = _grandChildTreeAppService.GetListByParentID(new Guid(childTreeID))
                          .Select(tree => new SelectListItem
         {
             Value = tree.Id.ToString(),
             Text  = tree.Title
         }).ToList();
         return(Json(childTrees));
     }
     else
     {
         return(Json(new
         {
             aaData = "Can not find GrandChildTrees by childTreeID",
             isSuccess = false
         }));
     }
 }