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)); + } } }