profiles dj, musicien, formation

This commit is contained in:
Paul Schneider 2017-01-06 14:02:17 +01:00
commit e143052211
35 changed files with 5364 additions and 18 deletions

View file

@ -0,0 +1,14 @@
using Yavsc.Models;
using Yavsc.Models.Booking;
using Yavsc.Models.Workflow;
namespace Yavsc.ApiControllers
{
public class DjProfileApiController : ProfileApiController<DjPerformerProfile>
{
public DjProfileApiController(ApplicationDbContext context) : base(context)
{
}
}
}

View file

@ -0,0 +1,20 @@
using System.Linq;
using Microsoft.AspNet.Authorization;
using Microsoft.AspNet.Mvc;
using Yavsc.Models;
using Yavsc.Models.Workflow;
namespace Yavsc.ApiControllers
{
[Produces("application/json"),Route("api/profile")]
public abstract class ProfileApiController<T> : Controller where T : PerformerProfile
{
ApplicationDbContext dbContext;
public ProfileApiController(ApplicationDbContext context)
{
dbContext = context;
}
}
}