2020-10-27 15:47:23 +01:00
|
|
|
using System.Collections.Generic;
|
2020-04-06 00:26:31 +02:00
|
|
|
using zero.Core.Api;
|
2020-10-27 15:47:23 +01:00
|
|
|
using zero.Core.Entities;
|
2020-04-05 00:54:18 +02:00
|
|
|
|
|
|
|
|
namespace zero.Web.Controllers
|
|
|
|
|
{
|
2020-04-05 13:05:39 +02:00
|
|
|
public class SectionsController : BackofficeController
|
2020-04-05 00:54:18 +02:00
|
|
|
{
|
2020-05-11 15:34:47 +02:00
|
|
|
ISectionsApi Api;
|
2020-04-05 00:54:18 +02:00
|
|
|
|
2020-05-11 15:34:47 +02:00
|
|
|
public SectionsController(ISectionsApi api)
|
2020-04-05 00:54:18 +02:00
|
|
|
{
|
2020-04-06 00:26:31 +02:00
|
|
|
Api = api;
|
2020-04-05 00:54:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2020-10-27 15:47:23 +01:00
|
|
|
public IReadOnlyCollection<ISection> GetAll() => Api.GetAll();
|
2020-04-05 00:54:18 +02:00
|
|
|
}
|
|
|
|
|
}
|