public async Task <int> Save(Joystick joystick, int id) { if (id >= 0) { await _dynService.Save(id, "Joystick", joystick); return(id); } return(await _dynService.Add("Joystick", joystick)); }
public async Task <int> Add(LoadOptions loadOption) { return(await _dynItemController.Add(loadOption.SettingName, loadOption)); }
public async Task <int> Add(LoadOptions m) { return(await _dynItemController.Add(m.SettingName, m)); }
public async Task <int> Add(Joystick joystick) { return(await _dynItemController.Add($"Joystick{joystick.Id}", joystick)); }