2016-11-17 09:41:13 +08:00
|
|
|
|
using Bootstrap.DataAccess;
|
2018-06-07 00:45:47 +08:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2016-11-17 09:41:13 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
2018-06-07 00:45:47 +08:00
|
|
|
|
namespace Bootstrap.Admin.Controllers.Api
|
2016-11-17 09:41:13 +08:00
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
2017-03-30 15:32:49 +08:00
|
|
|
|
/// </summary>
|
2018-06-07 00:45:47 +08:00
|
|
|
|
[Route("api/[controller]")]
|
2018-11-24 15:12:44 +08:00
|
|
|
|
[ApiController]
|
|
|
|
|
public class TasksController : ControllerBase
|
2016-11-17 09:41:13 +08:00
|
|
|
|
{
|
2018-06-07 00:45:47 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
///
|
|
|
|
|
/// </summary>
|
2017-03-30 15:32:49 +08:00
|
|
|
|
/// <returns></returns>
|
2016-11-17 09:41:13 +08:00
|
|
|
|
[HttpGet]
|
2016-11-18 20:49:44 +08:00
|
|
|
|
public IEnumerable<Task> Get()
|
2016-11-17 09:41:13 +08:00
|
|
|
|
{
|
2019-01-11 23:20:28 +08:00
|
|
|
|
return TaskHelper.Retrieves();
|
2016-11-17 09:41:13 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|