|
|
@ -11,7 +11,7 @@ using Microsoft.Extensions.Logging;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BowlingService.Interfaces
|
|
|
|
namespace BowlingService.Interfaces
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public class PartieService:IpartieService
|
|
|
|
public class PartieService : IpartieService
|
|
|
|
{
|
|
|
|
{
|
|
|
|
private readonly IpartieRepository _IpartieRepository;
|
|
|
|
private readonly IpartieRepository _IpartieRepository;
|
|
|
|
private readonly ILogger<JoueurService> _logger;
|
|
|
|
private readonly ILogger<JoueurService> _logger;
|
|
|
@ -126,7 +126,7 @@ namespace BowlingService.Interfaces
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
bool result = false;
|
|
|
|
bool result = false;
|
|
|
|
using(var context =new BowlingContext())
|
|
|
|
using (var context = new BowlingContext())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
PartieEntity entity = _mapper.Map<PartieEntity>(_partie);
|
|
|
|
PartieEntity entity = _mapper.Map<PartieEntity>(_partie);
|
|
|
|
entity.Date = _partie.Date;
|
|
|
|
entity.Date = _partie.Date;
|
|
|
@ -142,3 +142,4 @@ namespace BowlingService.Interfaces
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|