/// <summary> /// Логгирование удаления /// </summary> private static async Task <IResultError> ServiceDeleteAction <TId, TDomain>(IRestServiceBase <TId, TDomain> restService, IBoutiqueLogger boutiqueLogger) where TDomain : IDomainModel <TId> where TId : notnull => await restService.DeleteAsync(). VoidTaskAsync(result => BoutiqueServiceLog.LogServiceAction <TId, TDomain>(result, boutiqueLogger, ServiceActionType.Delete));
/// <summary> /// Логгирование загрузки /// </summary> private static async Task <IResultError> ServicePostAction <TId, TDomain>(IRestServiceBase <TId, TDomain> restService, IEnumerable <TDomain> domains, IBoutiqueLogger boutiqueLogger) where TDomain : IDomainModel <TId> where TId : notnull => await restService.PostCollectionAsync(domains). VoidTaskAsync(result => BoutiqueServiceLog.LogServiceAction <TId, TDomain>(result, boutiqueLogger, ServiceActionType.Post));