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

23 lines
525 B
C#

using Bootstrap.DataAccess;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
namespace Bootstrap.Admin.Controllers.Api
{
[Route("api/[controller]")]
public class CategoryController : Controller
{
/// <summary>
///
/// </summary>
/// <returns></returns>
[HttpGet]
[AllowAnonymous]
public IEnumerable<string> Get()
{
return DictHelper.RetrieveCategories();
}
}
}