BootstrapAdmin/Bootstrap.Admin/Controllers/Api/TasksController.cs

23 lines
493 B
C#
Raw Normal View History

using Bootstrap.DataAccess;
2018-06-07 00:45:47 +08:00
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
2018-06-07 00:45:47 +08:00
namespace Bootstrap.Admin.Controllers.Api
{
2018-06-07 00:45:47 +08:00
/// <summary>
///
/// </summary>
2018-06-07 00:45:47 +08:00
[Route("api/[controller]")]
public class TasksController : Controller
{
2018-06-07 00:45:47 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
[HttpGet]
2016-11-18 20:49:44 +08:00
public IEnumerable<Task> Get()
{
2016-11-18 20:49:44 +08:00
return TaskHelper.RetrieveTasks();
}
}
}