booking api: performers

This commit is contained in:
2017-02-03 15:25:47 +01:00
parent 8a4a778322
commit 21ec2f40b3
2 changed files with 38 additions and 0 deletions

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