public ActionResult SubCommodityListPartial(int?id) { if (id == null) { id = 1; } ViewBag.ShowParentCommodity = true; ViewBag.SelectedCommodityID = id; return(PartialView("_CommodityPartial", _commodityService.GetAllSubCommoditiesByParantId(id.Value).OrderBy(o => o.Name))); }