in src/Covi/Features/ApplyCode/ApplyCodeViewModel.cs [86:113]
private async Task HandleApplyCodeCommandAsync()
{
try
{
IsBusy = true;
var code = CodeValue;
if (string.IsNullOrWhiteSpace(code))
{
return;
}
var userProfile = await _userStatusChangeService.ApplyStatusChangeCode(code);
if (userProfile != null)
{
await _mainRoute.ExecuteAsync(_navigationService);
}
}
catch (Exception e)
{
await _errorHandler.HandleAsync(e);
}
finally
{
IsBusy = false;
}
}