public ActionResult NavNext(int Id = 0) { LayoutModel layoutModel; layoutService = new LayoutService(); layoutModel = layoutService.NavNext(Id); if (layoutModel != null) { layoutModel._FormMode = FormModeEnum.Edit; } if (layoutModel == null) { //layoutModel = layoutService.GetNewModel(); throw new Exception("[VALIDATION]-Data not exists"); } return(PartialView(VIEW_FORM_PARTIAL, layoutModel)); }