public IActionResult ChangeDeviceUser(int personId, int deviceId) { _repository.ChangeDeviceUser(personId, deviceId); _usage.EndUsing(deviceId); _usage.AddUsage(deviceId, personId); return(Ok("Success")); }