コード例 #1
0
ファイル: ConfigChartService.cs プロジェクト: behnix/ShopCore
 public async Task CreateConfigChart(ConfigChart configChart, int categoryId, int configGroupId)
 {
     configChart.Order = GetLastOrder(categoryId, configGroupId) + 1;
     _context.ConfigCharts.Add(configChart);
     await SaveChangeAsync();
 }
コード例 #2
0
ファイル: ConfigChartService.cs プロジェクト: behnix/ShopCore
 public void EditConfigChart(ConfigChart configChart)
 {
     _context.ConfigCharts.Update(configChart);
 }
コード例 #3
0
 private void Awake()
 {
     instance = this;
 }