Ejemplo n.º 1
0
        protected internal void SaveEquipment()
        {
            if (EquipmentDashboardVisible)
            {
                Loading = true;
                StateHasChanged();

                if (!HangarService.SaveHangar(Hangar, out string message))
                {
                    NotificationService.ShowError(message, "Failed to save equipment!");
                }
                else
                {
                    NotificationService.ShowSuccess("Equipment saved!");
                }

                Loading = false;
                StateHasChanged();
            }
        }