renis-backend/Repositories/Cars/ICarRepository.cs

15 lines
384 B
C#
Raw Permalink Normal View History

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();
}