private bool CheckExcept(RouteDetailOperationStepVm rd) // ANY True mean sn will stuck { if (rd.reject_code.Count <= 0) { return(true); // if not reject code found = no reject configured } foreach (var routeRejectSlug in rd.reject_code) { var routeRejectDetail = GetWsObj.GetSnipByRouteRejectName(routeRejectSlug); if (routeRejectDetail == null) { return(SetMsgAndReturn(EnumMessage.SystemObjectNotFoundBySlug, new List <string>() { EnumMpObject.RouteReject.ToString(), routeRejectSlug }, false)); } if (routeRejectDetail.snippet.code != "" & routeRejectDetail.snippet.code == EnumStatus.A.ToString()) { if (GetFlexObj.ExecuteScript(routeRejectDetail.snippet.code, GetWsObj.TokenAccessKey)) { return(SetMsgAndReturn(EnumMessage.SnipReturnFalse, new List <string>() { routeRejectDetail.snippet.name, routeRejectDetail.snippet.title, routeRejectDetail.snippet.returnmessage }, false)); } } } return(true); }