public ActionResult NavPrevious(int Id = 0) { AlertModel alertModel; alertService = new AlertService(); alertModel = alertService.NavPrevious(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)); }