22 lines
487 B
C#
22 lines
487 B
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System.Collections.Generic;
|
|
using System.Web.Http;
|
|
using MetadataServer.Models;
|
|
using MetadataServer.Connectors;
|
|
|
|
namespace MetadataServer.Controllers
|
|
{
|
|
public class EventController : ApiController
|
|
{
|
|
public List<EventData> Get(string Project, long LastEventId)
|
|
{
|
|
return SqlConnector.GetUserVotes(Project, LastEventId);
|
|
}
|
|
|
|
public void Post([FromBody] EventData Event)
|
|
{
|
|
SqlConnector.PostEvent(Event);
|
|
}
|
|
}
|
|
} |