public static Dictionary <string, InputInformation> GetForm() { Dictionary <string, InputInformation> result = new Dictionary <string, InputInformation>(); result.Add("ID", new InputInformation() { Type = InputInformationType.integer, Required = true, Readonly = true }); result.Add("Name", new InputInformation() { Type = InputInformationType.@string, Required = true, }); result.Add("Description", new InputInformation() { Type = InputInformationType.text }); result.Add("OriginalImage", new InputInformation() { Type = InputInformationType.@string, Required = true }); result.Add("PassiveImage", new InputInformation() { Type = InputInformationType.@string, Required = true }); result.Add("Link", new InputInformation() { Type = InputInformationType.@string, Required = true }); result.Add("RefLink", new InputInformation() { Type = InputInformationType.@string }); result.Add("IsActive", new InputInformation() { Type = InputInformationType.boolean }); result.Add("PartnerType", new InputInformation() { Type = InputInformationType.reference, Required = true, Reference = "PartnerType", ReferenceForm = BackendPartnerType.GetForm() }); return(result); }
public BackendPartnerViewModelItem() { PartnerTypeSelected = new BackendPartnerType(); Display = new List <PartnerDisplay>(); }