예제 #1
0
        protected void UpdateLastSelectedFitData()
        {
            int index = BaseData.FindIndex(item => item.Type == curType);

            //这种情况只能是FitDataCollectionsz中没有保存相应的type的数据
            if (index == -1)
            {
                BaseData.Add(new FitDataCollection
                {
                    Type     = curType,
                    FitDatas = SelectedItems.ToList()
                });
            }
            else
            {
                BaseData[index].FitDatas = SelectedItems.ToList();
            }
        }
예제 #2
0
 public T Post([FromBody] T obj)
 {
     return(_service.Add(obj));
 }