public JsonResult GetMetricByParentID(int ParentID) { List <TaskMetric> MetricList = new List <TaskMetric>(); if (ParentID != 0) { MetricList = DbFunction.GetMetricList(ParentID); } return(Json(MetricList)); }