2024-11-05 23:39:22 +04:00
|
|
|
|
using ProjectGarage.Entities;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ProjectGarage.Repositories.Implementations;
|
|
|
|
|
|
|
|
|
|
public class DriverRepository : IDriverRepository
|
|
|
|
|
{
|
2024-11-28 22:46:58 +04:00
|
|
|
|
public readonly IConnectionString _connectionString;
|
|
|
|
|
|
|
|
|
|
public DriverRepository(IConnectionString connectionString)
|
|
|
|
|
{
|
|
|
|
|
_connectionString = connectionString;
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-05 23:39:22 +04:00
|
|
|
|
public void CreateDriver(Driver driver)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void DeleteDriver(int id)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-20 14:50:06 +04:00
|
|
|
|
public Driver ReadDriverByID(int id) => Driver.CreateDriver(0, string.Empty, string.Empty, string.Empty, 0);
|
2024-11-05 23:39:22 +04:00
|
|
|
|
|
|
|
|
|
public IEnumerable<Driver> ReadDrivers() => [];
|
|
|
|
|
|
|
|
|
|
public void UpdateDriver(Driver driver)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|