public MDMSVC.DC_M_masterattributelists GetAllAttributeAndValuesByFOR(string For, string AttributeName) { MasterDataSVCs _objMaster = new MasterDataSVCs(); var retClass = new MDMSVC.DC_M_masterattributelists(); retClass = _objMaster.GetListAttributeAndValuesByFOR(new MDMSVC.DC_MasterAttribute() { MasterFor = For, Name = AttributeName }); return(retClass); }
private void fillAccomodationPriority(ListBox ddl) { lookupAttributeDAL LookupAtrributes = new lookupAttributeDAL(); MDMSVC.DC_M_masterattributelists list = LookupAtrributes.GetAllAttributeAndValuesByFOR("Accommodation", "Priority"); try { list.MasterAttributeValues = list.MasterAttributeValues.OrderBy(x => Convert.ToInt32(x.AttributeValue)).ToArray(); } catch { } ddl.Items.Clear(); ddl.DataSource = list.MasterAttributeValues; ddl.DataValueField = "AttributeValue"; ddl.DataTextField = "OTA_CodeTableValue"; ddl.DataBind(); }