Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (22 sloc) 630 Bytes
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using AspNetCoreApiLoggingSample.Services;
using Microsoft.AspNetCore.Mvc;
namespace AspNetCoreApiLoggingSample.Controllers
public class LogsController : Controller
private readonly ApiLogService _apiLogService;
public LogsController(ApiLogService apiLogService)
_apiLogService = apiLogService;
public async Task<IActionResult> Index()
var apiLogItems = await _apiLogService.Get();
return View(apiLogItems);
You can’t perform that action at this time.