This repository has been archived on 2023-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
BirdsiteLIVE/src/BirdsiteLive/Controllers/AboutController.cs
2021-07-17 17:30:52 -04:00

31 lines
728 B
C#

using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BirdsiteLive.Domain.Repository;
using BirdsiteLive.Services;
namespace BirdsiteLive.Controllers
{
public class AboutController : Controller
{
private readonly IAboutPageService _aboutPageService;
#region Ctor
public AboutController(IAboutPageService cachedStatisticsService)
{
_aboutPageService = cachedStatisticsService;
}
#endregion
public async Task<IActionResult> Index()
{
var stats = await _aboutPageService.GetAboutPageDataAsync();
return View(stats);
}
}
}