Commit Debut de rework
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
using LaDOSE.Business.Interface;
|
||||
using LaDOSE.Business.Service;
|
||||
using LaDOSE.Entity;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace LaDOSE.Api.Controllers
|
||||
{
|
||||
[Authorize]
|
||||
[Route("api/[controller]")]
|
||||
[Produces("application/json")]
|
||||
public class SeasonController : GenericController<ISeasonService,Season>
|
||||
{
|
||||
public SeasonController(ISeasonService service) : base(service)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -44,18 +44,6 @@ namespace LaDOSE.Api.Controllers
|
||||
return null;
|
||||
}
|
||||
|
||||
//[HttpPost("GetResults")]
|
||||
//public async Task<TournamentsResultDTO> GetResults([FromBody] List<int> ids)
|
||||
//{
|
||||
// if (ids == null)
|
||||
// {
|
||||
// throw new Exception("Invalid arguments");
|
||||
// }
|
||||
|
||||
// var tournamentsResult = await _service.GetTournamentsResult(ids);
|
||||
// return _mapper.Map<TournamentsResultDTO>(tournamentsResult);
|
||||
|
||||
//}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ using LaDOSE.Business.Provider.ChallongProvider;
|
||||
using LaDOSE.Business.Provider.SmashProvider;
|
||||
using LaDOSE.Entity.Challonge;
|
||||
using LaDOSE.Entity.Wordpress;
|
||||
using Result = LaDOSE.Entity.Challonge.Result;
|
||||
|
||||
namespace LaDOSE.Api
|
||||
{
|
||||
@@ -146,7 +147,6 @@ namespace LaDOSE.Api
|
||||
services.AddScoped<IUserService, UserService>();
|
||||
services.AddScoped<IGameService, GameService>();
|
||||
services.AddScoped<IEventService, EventService>();
|
||||
services.AddScoped<ISeasonService, SeasonService>();
|
||||
services.AddScoped<IWordPressService, WordPressService>();
|
||||
services.AddScoped<ITodoService, TodoService>();
|
||||
services.AddScoped<ITournamentService, TournamentService>();
|
||||
|
||||
Reference in New Issue
Block a user