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