public ConfigurationModel(string key, string name,int sort) { this.key = key; this.name = name; this.sort = sort; DatabaseMappings = new List<MappingItemModel>(); try { FileBase file = ConfigFileManager.Current.GetFileInstance("databasemap"); if (file != null) { XDocument xDocument = XDocument.Load(file.FullFileName); XElement mapping = xDocument.Root.Element("mappings"); MappingItemModel mappingItem; foreach (var item in mapping.Elements("add")) { mappingItem = new MappingItemModel(); mappingItem.Name = item.Attribute("name").Value; mappingItem.Value = item.Attribute("value").Value; DatabaseMappings.Add(mappingItem); } } } catch { } }
public Task <statuscheckmodel> Unmappingitem(MappingItemModel model) { return(_purchaseDataAcess.Unmappingitem(model)); }