Adding MaidBotApi
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
using LCU.Api.Internal.MaidBotLib.Models;
|
||||
using LCU.Api.Internal.MaidBotLib.Persistence;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LCU.Api.Internal.MaidBotLib.Repositories
|
||||
{
|
||||
public class DebugEventLogRepository : BaseRepository, IDebugEventLogRepository
|
||||
{
|
||||
public DebugEventLogRepository(AppDbContext context) : base(context) { }
|
||||
|
||||
public async Task<DebugEventLog> AddAsync(DebugEventLog debugEventLog)
|
||||
{
|
||||
var result = await _context.DebugEventLogs.AddAsync(debugEventLog);
|
||||
return result.Entity;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user