list of authorities, changing authority auth data

This commit is contained in:
2024-09-12 21:14:30 +03:00
parent 18e02792ec
commit 9015348aa6
25 changed files with 442 additions and 175 deletions

View File

@@ -0,0 +1,9 @@
using Domains;
namespace ApplicationLayer.GeneralExceptions;
/// Exception to throw when entity not found
/// <param name="id">Identifier of entity</param>
/// <typeparam name="T">Type of entity</typeparam>
public class EntityNotFoundByIdException<T>(Guid id) : EntityNotFoundException($"{typeof(T).Name} with id {id} not found.")
where T : class, IEntity;

View File

@@ -0,0 +1,4 @@
namespace ApplicationLayer.GeneralExceptions;
/// Exception to throw when entity not found
public class EntityNotFoundException(string message) : ApiException(message);