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