Some fixes from last release (#1884)
* Removed SecurityEvent middleware solution. It was out of scope originally. * Fixed manage users still calling pending when the api is no more * Added back the online indicator on manage users
This commit is contained in:
parent
93bd7d7c19
commit
d070da2834
21 changed files with 1940 additions and 177 deletions
|
|
@ -1,27 +0,0 @@
|
|||
using API.Entities;
|
||||
using AutoMapper;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace API.Data.Repositories;
|
||||
|
||||
public interface ISecurityEventRepository
|
||||
{
|
||||
void Add(SecurityEvent securityEvent);
|
||||
}
|
||||
|
||||
public class SecurityEventRepository : ISecurityEventRepository
|
||||
{
|
||||
private readonly DataContext _context;
|
||||
private readonly IMapper _mapper;
|
||||
|
||||
public SecurityEventRepository(DataContext context, IMapper mapper)
|
||||
{
|
||||
_context = context;
|
||||
_mapper = mapper;
|
||||
}
|
||||
|
||||
public void Add(SecurityEvent securityEvent)
|
||||
{
|
||||
_context.SecurityEvent.Add(securityEvent);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue