From 6a28095c66bc2b374620ce0d077d16607f18d6a5 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 30 Apr 2017 01:39:22 +0200 Subject: [PATCH] liste les performers --- Yavsc/ApiControllers/PerformersApiController.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Yavsc/ApiControllers/PerformersApiController.cs b/Yavsc/ApiControllers/PerformersApiController.cs index c08e3a50..6e819b88 100644 --- a/Yavsc/ApiControllers/PerformersApiController.cs +++ b/Yavsc/ApiControllers/PerformersApiController.cs @@ -8,6 +8,8 @@ using Microsoft.Data.Entity; namespace Yavsc.Controllers { using Models; + using Yavsc.Helpers; + [Produces("application/json")] [Route("api/performers")] public class PerformersApiController : Controller @@ -50,5 +52,11 @@ namespace Yavsc.Controllers if (ModelState.IsValid) return Ok(pfr); return new BadRequestObjectResult(ModelState); } + + [HttpGet("doing/{id}"),AllowAnonymous] + public IActionResult ListPerformers(string id) + { + return Ok(dbContext.ListPerformers(id)); + } } }