booking api: performers
parent
8a4a778322
commit
21ec2f40b3
@ -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…
Reference in New Issue