Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 507 Bytes
using System.Collections.Generic;
using Core.Models;
using DataAccess;
namespace Business
{
public class VehicleService : IVehicleService
{
private readonly IDataAccess _dataAccess;
public VehicleService() : this(new StaticDataAccess())
{}
public VehicleService(IDataAccess dataAccess)
{
_dataAccess = dataAccess;
}
public IList<Vehicle> GetAll()
{
return _dataAccess.GetAllVehicles();
}
}
}