Beispiel #1
0
        public JsonResult GetDependent(long?dependentId)
        {
            if (dependentId == null)
            {
                return(Json(new SelectList(new List <DataModel>(), "Id", "Title")));
            }

            var result = _rep.GetDependent(dependentId.Value);

            return(Json(new SelectList(result, "Id", "Title")));
        }
Beispiel #2
0
        public PartialViewResult GetDependent(long?dependentId)
        {
            if (dependentId == null)
            {
                return(PartialView("ProgramDbTableRow", new List <ProgramTableRow>()));
            }

            var result = _rep.GetDependent(dependentId.Value);

            return(PartialView("ProgramDbTableRow", result));
        }