2018-10-06 14:16:42 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using LaDOSE.Business.Interface;
|
|
|
|
|
|
using LaDOSE.Entity;
|
|
|
|
|
|
using LaDOSE.Entity.Context;
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
|
|
|
|
|
|
namespace LaDOSE.Business.Service
|
|
|
|
|
|
{
|
2018-10-07 03:03:38 +02:00
|
|
|
|
public class GameService : BaseService<Game> ,IGameService
|
2018-10-06 14:16:42 +02:00
|
|
|
|
{
|
|
|
|
|
|
|
2018-10-07 03:03:38 +02:00
|
|
|
|
public GameService(LaDOSEDbContext context) : base(context)
|
2018-10-06 14:16:42 +02:00
|
|
|
|
{
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2018-10-07 03:03:38 +02:00
|
|
|
|
public override IEnumerable<Game> GetAll()
|
2018-10-06 14:16:42 +02:00
|
|
|
|
{
|
|
|
|
|
|
return _context.Game.Include(e => e.Seasons).ToList();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|