1
0
mirror of https://github.com/bitwarden/server synced 2025-12-22 11:13:27 +00:00
Files
server/src/Core/Services/Implementations/RepositoryEventWriteService.cs
Justin Baur 231eb84e69 Turn On ImplicitUsings (#2079)
* Turn on ImplicitUsings

* Fix formatting

* Run linter
2022-06-29 19:46:41 -04:00

27 lines
651 B
C#

using Bit.Core.Models.Data;
using Bit.Core.Repositories;
namespace Bit.Core.Services
{
public class RepositoryEventWriteService : IEventWriteService
{
private readonly IEventRepository _eventRepository;
public RepositoryEventWriteService(
IEventRepository eventRepository)
{
_eventRepository = eventRepository;
}
public async Task CreateAsync(IEvent e)
{
await _eventRepository.CreateAsync(e);
}
public async Task CreateManyAsync(IEnumerable<IEvent> e)
{
await _eventRepository.CreateManyAsync(e);
}
}
}