@model GreenTree.Nachtragsmanagement.Web.Models.Appendix.IRequireCategoryDataModel

@{ 
	var comboBoxSettingsAction = (Action<ComboBoxSettings>)Session[ViewData["CategoriesComboBoxSettings"].ToString()];
}

@if (Model == null)
{
	Html.DevExpress().ComboBox(comboBoxSettingsAction)
		.BindList(ViewData["AllCategories"]).GetHtml();
}
else
{
	Html.DevExpress().ComboBoxFor(m => m.CategoryId, comboBoxSettingsAction)
		.BindList(ViewData["AllCategories"]).Bind(Model.CategoryId).GetHtml();
}