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

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

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

Loading…
Cancel
Save