public async Task CreateConfigChart(ConfigChart configChart, int categoryId, int configGroupId) { configChart.Order = GetLastOrder(categoryId, configGroupId) + 1; _context.ConfigCharts.Add(configChart); await SaveChangeAsync(); }
public void EditConfigChart(ConfigChart configChart) { _context.ConfigCharts.Update(configChart); }
private void Awake() { instance = this; }