Test WPF Desktop App with Caliburn And RestSharp

This commit is contained in:
2019-02-26 01:26:03 +01:00
parent 35bd2890ed
commit e8fd116eab
38 changed files with 996 additions and 30 deletions

View File

@@ -0,0 +1,30 @@
using System.Collections.Generic;
using LaDOSE.Business.Interface;
using LaDOSE.Entity.Wordpress;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace LaDOSE.Api.Controllers
{
[Authorize]
[Produces("application/json")]
[Route("api/[controller]")]
public class WordPressController : Controller
{
// GET
public WordPressController(IWordPressService service)
{
_service = service;
}
private IWordPressService _service;
[HttpGet("WPEvent")]
public List<WPEvent> Event()
{
return _service.GetWpEvent();
}
}
}