public ActionResult Index(int RegNo, string Review) { var Model = _perforamnce.GetCandidatePerformanceIntialPageInfo(RegNo, Review); Model.ReviewList = _perforamnce.GetReViewList(); var Option = _perforamnce.DisablePerformanceOption(RegNo, Model.BatchId.Value); Model.ReviewArr = Option.ReviewArr; Model.WeeklyArr = Option.WeeklyArr; if (!string.IsNullOrEmpty(Review)) { string[] arr = Review.Split('-'); Model.ReviewId = Convert.ToInt32(arr[0]); if (arr.Length == 2) { Model.WeeklyTermId = Convert.ToInt32(arr[1]); } } return(View(Model)); }