2018-10-07 15:15:11 +02:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using LaDOSE.Business.Interface;
|
|
|
|
|
|
using LaDOSE.Entity;
|
|
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
|
|
|
|
namespace LaDOSE.Api.Controllers
|
|
|
|
|
|
{
|
|
|
|
|
|
[Produces("application/json")]
|
|
|
|
|
|
[Route("api/[controller]")]
|
2018-10-12 20:52:59 +02:00
|
|
|
|
public class EventController : GenericController<IEventService, Event>
|
2018-10-07 15:15:11 +02:00
|
|
|
|
{
|
2018-10-12 20:52:59 +02:00
|
|
|
|
public EventController(IEventService service) : base(service)
|
2018-10-07 15:15:11 +02:00
|
|
|
|
{
|
|
|
|
|
|
}
|
2018-10-12 20:52:59 +02:00
|
|
|
|
|
|
|
|
|
|
|
2018-10-08 23:33:18 +02:00
|
|
|
|
[HttpGet("Generate/{eventId}/{wpEventId}")]
|
|
|
|
|
|
public bool GenerateChallonge(int eventId, int wpEventId)
|
2018-10-07 15:15:11 +02:00
|
|
|
|
{
|
2018-10-12 20:52:59 +02:00
|
|
|
|
return _service.CreateChallonge(eventId, wpEventId);
|
2018-10-07 15:15:11 +02:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|