24 lines
558 B
C#
24 lines
558 B
C#
|
using Bootstrap.DataAccess;
|
|||
|
using Bootstrap.Security;
|
|||
|
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<BootstrapDict> Get()
|
|||
|
{
|
|||
|
return DictHelper.RetrieveCategories();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|