Exemple #1
0
 public void Save(MappingTableModel model)
 {
     var dtMapping = _dalMapping.GetMappingList(model.MappingType);
     if (dtMapping.AsEnumerable().Any(dr => dr["Value"].ToString() == model.Value))
     {
         _dalMapping.Modify(model.ToHashTable());
     }
     else
     {
         _dalMapping.Create(model.ToHashTable());
     }
 }
Exemple #2
0
        public void Save(MappingTableModel model)
        {
            var dtMapping = _dalMapping.GetMappingList(model.MappingType);

            if (dtMapping.AsEnumerable().Any(dr => dr["Value"].ToString() == model.Value))
            {
                _dalMapping.Modify(model.ToHashTable());
            }
            else
            {
                _dalMapping.Create(model.ToHashTable());
            }
        }
 // POST api/mapping
 public void Post([FromBody] MappingTableModel model)
 {
     _bllMapping.Save(model);
 }