public ActionResult FillInOutType(int chanelTypeEVID) { int categoryID = 0; if (chanelTypeEVID == 48) { categoryID = (int)CategoryEnum.InOutTypeMessage; } else if (chanelTypeEVID == 49) { categoryID = (int)CategoryEnum.InOutTypeCall; } IEnumerable <SelectListItem> InOutTypeList = EnumService.GetEnumValueListByEcIDForINOUT(categoryID); return(Json(InOutTypeList, JsonRequestBehavior.AllowGet)); }
private OperatorInformationVM poulateDropDownList(OperatorInformationVM viewModel) { viewModel.OperatorTypeList = EnumService.GetEnumValueListByEcID((int)CategoryEnum.OperatorType); viewModel.OperatorChanelTypeList = EnumService.GetEnumValueListByEcID((int)CategoryEnum.OperatorChanelType); if (viewModel.EnumCategoryID == 17) { viewModel.InOutTypeList = EnumService.GetEnumValueListByEcIDForINOUT((int)CategoryEnum.InOutTypeMessage); } else { viewModel.InOutTypeList = EnumService.GetEnumValueListByEcIDForINOUT((int)CategoryEnum.InOutTypeCall); } viewModel.OperatorPrefixList = EnumService.GetEnumValueListByEcIDForPrefix((int)CategoryEnum.OperatorPrefixType); return(viewModel); }