示例#1
0
        public async Task <IHttpActionResult> Post(DefaultDevicePostDto dto)
        {
            _api.DefaultDeviceId = dto.DeviceId;
            await _api.UpdateDevice(new DevicesPostDto
            {
                Device_Id = dto.DeviceId,
                Play      = true
            });

            _api.SaveSession();
            return(Ok("Success"));
        }