/* Submit data based on the input Setting level (Form, FormSet or System). */
EFI_STATUS SubmitForm(IN FORM_BROWSER_FORMSET *FormSet, IN FORM_BROWSER_FORM *Form, IN BROWSER_SETTING_SCOPE SettingScope)
/* Submit data based on the input Setting level (Form, FormSet or System). */
EFI_STATUS SubmitForm(IN FORM_BROWSER_FORMSET *FormSet, IN FORM_BROWSER_FORM *Form, IN BROWSER_SETTING_SCOPE SettingScope)
{
  EFI_STATUS  Status;
  switch (SettingScope) {
    case FormLevel:
      Status = SubmitForForm (FormSet, Form);
      break;
    case FormSetLevel:
      Status = SubmitForFormSet (FormSet, FALSE);
      break;
    case SystemLevel:
      Status = SubmitForSystem ();
      break;
    default:
      Status = EFI_UNSUPPORTED;
      break;
  }
  return Status;
}