21 lines
501 B
C#
21 lines
501 B
C#
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
using System.Collections.Generic;
|
|
using System.Web.Http;
|
|
using MetadataServer.Connectors;
|
|
using MetadataServer.Models;
|
|
|
|
namespace MetadataServer.Controllers
|
|
{
|
|
public class CommentController : ApiController
|
|
{
|
|
public List<CommentData> Get(string Project, long LastCommentId)
|
|
{
|
|
return SqlConnector.GetComments(Project, LastCommentId);
|
|
}
|
|
public void Post([FromBody] CommentData Comment)
|
|
{
|
|
SqlConnector.PostComment(Comment);
|
|
}
|
|
}
|
|
} |