initial import

This commit is contained in:
Paul Schneider 2017-01-31 13:21:42 +01:00
commit 95c2619c4c
2 changed files with 172 additions and 0 deletions

View file

@ -0,0 +1,24 @@
using System.Collections.Generic;
using Microsoft.AspNet.Mvc;
using System.Linq;
using Yavsc.Models;
using Yavsc.Models.Workflow;
namespace Yavsc.Controllers
{
[Produces("application/json")]
[Route("api/performers")]
public class PerformersApiController : Controller
{
ApplicationDbContext dbContext;
public PerformersApiController(ApplicationDbContext context)
{
dbContext = context;
}
public IEnumerable<PerformerProfile> Get()
{
return dbContext.Performers.Where(p=>p.Active && p.AcceptPublicContact);
}
}
}