예제 #1
0
 private void MapPriceTypeModelWithReponse(dynamic priceTypes)
 {
     PriceTypeList.Clear();
     foreach (var row in priceTypes.CommonGrids)
     {
         var priceType = new PriceTypeModel
         {
             Id      = _currentpriceTypeIndex++,
             Column1 = row.Column1,
             Column2 = row.Column2,
             Column3 = row.Column3
         };
         PriceTypeList.Add(priceType);
     }
 }
 public IActionResult Edit(PriceTypeModel model)
 {
     return(Json(_handler.Upsert(model)));
 }