liste les performers
This commit is contained in:
parent
b97d6741f2
commit
17f15b4edb
1 changed files with 8 additions and 0 deletions
|
|
@ -8,6 +8,8 @@ using Microsoft.Data.Entity;
|
||||||
namespace Yavsc.Controllers
|
namespace Yavsc.Controllers
|
||||||
{
|
{
|
||||||
using Models;
|
using Models;
|
||||||
|
using Yavsc.Helpers;
|
||||||
|
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
||||||
[Route("api/performers")]
|
[Route("api/performers")]
|
||||||
public class PerformersApiController : Controller
|
public class PerformersApiController : Controller
|
||||||
|
|
@ -50,5 +52,11 @@ namespace Yavsc.Controllers
|
||||||
if (ModelState.IsValid) return Ok(pfr);
|
if (ModelState.IsValid) return Ok(pfr);
|
||||||
return new BadRequestObjectResult(ModelState);
|
return new BadRequestObjectResult(ModelState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpGet("doing/{id}"),AllowAnonymous]
|
||||||
|
public IActionResult ListPerformers(string id)
|
||||||
|
{
|
||||||
|
return Ok(dbContext.ListPerformers(id));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue