15 lines
384 B
C#
15 lines
384 B
C#
|
using Renis.Database.Models;
|
||
|
|
||
|
namespace Renis.Repositories;
|
||
|
|
||
|
public interface ICarRepository
|
||
|
{
|
||
|
public Task<bool> AddCar(Car car);
|
||
|
public Task<bool> UpdateCar(Car car);
|
||
|
public Task<bool> DeleteCar(Car car);
|
||
|
public Task<Car?> GetCarById(long id);
|
||
|
public Task<Car?> GetCarByNumber(string number);
|
||
|
public IQueryable<Car> GetCars();
|
||
|
public Task<bool> Save();
|
||
|
}
|