wabbajack/Wabbajack.BuildServer/Controllers/AControllerBase.cs

29 lines
652 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Alphaleonis.Win32.Filesystem;
using GraphQL;
using Microsoft.AspNetCore.Mvc;
2020-01-08 04:41:50 +00:00
using Microsoft.Extensions.Logging;
using MongoDB.Driver;
2020-01-08 04:41:50 +00:00
using Wabbajack.BuildServer.Models;
using Wabbajack.Common;
2020-01-08 04:41:50 +00:00
namespace Wabbajack.BuildServer.Controllers
{
2020-01-10 02:06:11 +00:00
[ApiController]
2020-01-08 04:41:50 +00:00
public abstract class AControllerBase<T> : ControllerBase
{
protected readonly DBContext Db;
2020-01-10 02:06:11 +00:00
protected readonly ILogger<T> Logger;
2020-01-08 04:41:50 +00:00
protected AControllerBase(ILogger<T> logger, DBContext db)
{
Db = db;
Logger = logger;
}
2020-01-08 04:41:50 +00:00
}
}