2026-04-30 10:35:31 +10:00
|
|
|
|
using PARR.Core.Repositories.Interfaces;
|
|
|
|
|
|
using PARR.DAL.Context;
|
2026-07-21 11:48:21 +10:00
|
|
|
|
using PARR.Domain.Entities.RobotEntities;
|
2026-04-30 10:35:31 +10:00
|
|
|
|
|
|
|
|
|
|
namespace PARR.DAL.Repositories
|
|
|
|
|
|
{
|
|
|
|
|
|
internal class RobotRepository : IRobotRepository
|
|
|
|
|
|
{
|
|
|
|
|
|
private readonly DataContext dataContext;
|
|
|
|
|
|
|
|
|
|
|
|
public RobotRepository(DataContext dataContext)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.dataContext = dataContext;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IQueryable<Robot> Get()
|
|
|
|
|
|
{
|
|
|
|
|
|
return dataContext.Robots;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|