public ActionResult NavPrevious(int Id = 0) { LayoutModel layoutModel; layoutService = new LayoutService(); layoutModel = layoutService.NavPrevious(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)); }