/// <summary> /// Show details of selected lifecycle or none if no id /// </summary> /// <param name="id"></param> /// <returns></returns> public ActionResult ShowLifecycle(int id = 0) { var model = _portfolioService.GetLifecycleStatus(id); if (model == null) { model = new LifecycleStatusDto { Id = 0 } } ; return(View(model as LifecycleStatusDto)); }