public virtual ActionResult ManagementFilter(string filter) { var model = new TableMasterDataTypeViewModel { Table = new List <MasterDataManagementTableModelView>(), Type = Convert.ToInt32(filter) > 0 ? "qwe" : string.Empty, MasterTypeId = Convert.ToInt32(filter) }; model = _viewModelMapperHelper.GetMasterDataByType(filter); ViewBag.SerializedViewModel = PageSerializationHelper.SerializeObject(model); return(View("Management", model)); }