Beispiel #1
0
        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));
        }
Beispiel #2
0
 public async Task <int> Add(LoadOptions loadOption)
 {
     return(await _dynItemController.Add(loadOption.SettingName, loadOption));
 }
Beispiel #3
0
 public async Task <int> Add(LoadOptions m)
 {
     return(await _dynItemController.Add(m.SettingName, m));
 }
Beispiel #4
0
 public async Task <int> Add(Joystick joystick)
 {
     return(await _dynItemController.Add($"Joystick{joystick.Id}", joystick));
 }