Changed exceptions, added action for closing applications by applicant

This commit is contained in:
2024-08-22 11:43:55 +03:00
parent 99625c957e
commit 7b7ca6ae36
12 changed files with 61 additions and 12 deletions

View File

@@ -5,5 +5,5 @@ namespace ApplicationLayer.Services.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<T>($"{typeof(T).Name} with id {id} not found.")
public class EntityNotFoundByIdException<T>(Guid id) : EntityNotFoundException($"{typeof(T).Name} with id {id} not found.")
where T : class, IEntity;