using System.Threading.Tasks; using AutoCatCore.Model; using AutoCatCore.Services.Storage; namespace AutoCat.ViewModels; public class HistoryViewModel: ViewModelBase { #region Dependencies private readonly IStorageService _storageService; #endregion public HistoryViewModel(IStorageService storageService) { _storageService = storageService; } public async Task AddVehicle(Vehicle vehicle) { await _storageService.AddVehicle(vehicle); } }