demo_trade/Data/Repository/SQLPickupRepository.cs

23 lines
548 B
C#
Raw Normal View History

2024-10-04 12:41:04 +00:00
using demo_trade.Data.RemoteData.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace demo_trade.Data.Repository
{
public class SQLPickupRepository : IPickupRepository
{
private TradeContext _tradeContext;
public SQLPickupRepository() {
_tradeContext = new TradeContext();
}
public List<PickupPoint> GetAllPickupPoints()
{
return _tradeContext.PickupPoints.ToList();
}
}
}