public IEnumerable <DetailType> GetAll() { using (var ctx = new CarDetailsContext()) { return(ctx.DetailTypes.AsNoTracking().ToList()); } }
public DetailRepository() { _ctx = new CarDetailsContext(); }
public ManufacturerRepository() { _db = new CarDetailsContext(); }