Files
monorepo/LCU.WebApps.Indirect.ReserveManagementSystem/Api/ReserveManagementSystemLib/Repositories/VehicleRepository.cs
T
2026-03-17 08:54:34 -05:00

17 lines
481 B
C#

using ReserveManagementSystemLib.Models;
using ReserveManagementSystemLib.Persistence;
namespace ReserveManagementSystemLib.Repositories
{
public class VehicleRepository : BaseRepository, IVehicleRepository
{
public VehicleRepository(AppDbContext context) : base(context) { }
public async Task<Vehicle> FindByLoanIdAsync(int? loanId)
{
return await _context.Vehicles.FirstOrDefaultAsync(v => v.LoanId == loanId);
}
}
}