using System.Collections.Generic;
using AutoMapper;
using Umbraco.Core.Services;
using Umbraco.Web.Models.ContentEditing;
using Umbraco.Web.Mvc;
using Umbraco.Web.WebApi;
using System.Linq;
namespace Umbraco.Web.Editors
{
///
/// The API controller used for using the list of sections
///
[PluginController("UmbracoApi")]
public class SectionController : UmbracoAuthorizedApiController
{
public IEnumerable GetSections()
{
return Services.SectionService.GetSections().Select(Mapper.Map);
}
}
}