public IModuleDictionary ForViewModel(string viewModelName) { viewModelName.Guard("ModelName must not be null or empty."); IModuleDictionary moduleDictionary = new ModuleDictionary(this, viewModelName); return(moduleDictionary); }
public IModuleDictionary DisplayProperties(string displayText, bool isRequired = false) { displayText.Guard("DisplayText must not be empty or null."); _dataDictionary.FieldDisplayText = displayText; _dataDictionary.IsRequired = isRequired; _container.Container.Add(_dataDictionary); IModuleDictionary moduleDictionary = new ModuleDictionary(_container, _dataDictionary.Model); return(moduleDictionary); }