booking api: performers
This commit is contained in:
parent
7fdc081899
commit
748e6dd261
2 changed files with 38 additions and 0 deletions
24
Yavsc/ApiControllers/FrontOfficeApiController.cs
Normal file
24
Yavsc/ApiControllers/FrontOfficeApiController.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using System.Collections.Generic;
|
||||
using Microsoft.AspNet.Mvc;
|
||||
using Yavsc.Helpers;
|
||||
using Yavsc.Models;
|
||||
using Yavsc.Models.Workflow;
|
||||
|
||||
namespace Yavsc.ApiControllers
|
||||
{
|
||||
[Route("api/front")]
|
||||
public class FrontOfficeApiController: Controller
|
||||
{
|
||||
ApplicationDbContext dbContext;
|
||||
public FrontOfficeApiController(ApplicationDbContext context)
|
||||
{
|
||||
dbContext = context;
|
||||
}
|
||||
|
||||
[HttpGet,Route("Book/{actCode}")]
|
||||
IEnumerable<PerformerProfile> Book (string actCode)
|
||||
{
|
||||
return dbContext.ListPerformers(actCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue