feat(auth): AD-Authentifizierungsprüfung hinzugefügt
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
namespace DigitalData.Core.Application
|
||||
{
|
||||
public class AuthService
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -48,7 +48,7 @@ namespace DigitalData.Core.Application
|
||||
{
|
||||
var entity = _mapper.MapOrThrow<TEntity>(createDto);
|
||||
var createdEntity = await _repository.CreateAsync(entity);
|
||||
if(createdEntity is null)
|
||||
if (createdEntity is null)
|
||||
return Failed<TId>();
|
||||
else
|
||||
return Successful(KeyValueOf(createdEntity));
|
||||
@@ -145,7 +145,7 @@ namespace DigitalData.Core.Application
|
||||
/// <returns>The ID of the entity.</returns>
|
||||
protected virtual TId KeyValueOf(TEntity entity)
|
||||
{
|
||||
if(_keyPropertyInfo is null)
|
||||
if (_keyPropertyInfo is null)
|
||||
throw new InvalidOperationException($"No property with [Key] attribute found on {typeof(TEntity).Name} entity.");
|
||||
|
||||
object idObj = _keyPropertyInfo?.GetValue(entity) ?? throw new InvalidOperationException($"The ID property of {typeof(TEntity).Name} entity cannot be null.");
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
||||
27b4d1c0e521dbdcdae7e49ff5b85233b84a7ece
|
||||
9c98a8de39558d32de60bd00a4f3744b3887e0d2
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user