24 lines
543 B
C#
24 lines
543 B
C#
using MAX.Core.DependencyInjection;
|
|
using Store.Shops.Contracts;
|
|
using Store.Shops.Repositories;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Store.Shops.Services
|
|
{
|
|
internal class ShopQueryService: IShopQueryService, ITransientDependency
|
|
{
|
|
private readonly IShopRepository _shopRepository;
|
|
|
|
public ShopQueryService(IShopRepository shopRepository)
|
|
{
|
|
_shopRepository = shopRepository;
|
|
}
|
|
public DateTime GetExpireTime(string shopId)
|
|
{
|
|
return _shopRepository.GetExpireTime(shopId);
|
|
}
|
|
}
|
|
}
|