partief
continuous-integration/drone/push Build is failing Details

pull/6/head
etudiant 2 years ago
commit ec54013a14

@ -31,7 +31,7 @@ namespace BowlingApi.Controllers
// GET: api/Partie // GET: api/Partie
[HttpGet] [HttpGet]
public async Task< IActionResult >Get() public async Task<IActionResult> Get()
{ {
try try
{ {
@ -53,7 +53,7 @@ namespace BowlingApi.Controllers
// GET: api/Partie/djon // GET: api/Partie/djon
[HttpGet("{name}")] [HttpGet("{name}")]
public async Task < IActionResult> Get(string name) public async Task<IActionResult> Get(string name)
{ {
// return Ok(_partieService.GetDataWithName(name)); // return Ok(_partieService.GetDataWithName(name));
@ -130,3 +130,4 @@ namespace BowlingApi.Controllers
} }
} }

@ -5,7 +5,7 @@ using Microsoft.EntityFrameworkCore;
namespace BowlingRepository.Interface namespace BowlingRepository.Interface
{ {
public class PartieRepository:IpartieRepository public class PartieRepository : IpartieRepository
{ {
private readonly BowlingContext _context; private readonly BowlingContext _context;
public PartieRepository() public PartieRepository()
@ -61,3 +61,4 @@ namespace BowlingRepository.Interface
} }
} }

@ -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
} }
} }

Loading…
Cancel
Save