using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using gehGassi.Core.Interfaces;
using gehGassi.Domain.Shop;
namespace gehGassi.Core.Services
{
///
/// Service der die Verwaltung Shop-Einstellungen realisiert
///
public class ShopSettingsService : ServiceBase, IShopSettingsService
{
///
/// Erstellt eine Instanz
///
/// Instanz einer IUnitOfWork
public ShopSettingsService(IUnitOfWork unitOfWork) : base(unitOfWork)
{
}
///
/// Gibt die aktuellen Shop-Einstellungen zurück
///
/// ShopSettings
public async Task GetAsync()
{
return await Repository.FirstOrDefaultAsync( c => c.Id > 0).ConfigureAwait(false);
}
}
}