This commit is contained in:
2025-09-06 22:52:42 +04:30
parent 9b75ddca8a
commit 33dd1f781b
25 changed files with 292 additions and 63 deletions
@@ -1,15 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VizhTalk.BuildingBlocks.Application.Exceptions
{
public class LanguageTitleAlreadyExistsException : BaseException
{
public LanguageTitleAlreadyExistsException() : base("title already exists")
{
}
}
}
@@ -1,7 +1,10 @@
namespace VizhTalk.BuildingBlocks.Application;
using System.Transactions;
namespace VizhTalk.BuildingBlocks.Application;
public interface IUnitOfWorkBase : IDisposable
{
Task<int> CommitAsync(
CancellationToken cancellationToken = default);
Task BeginTransactionAsync(CancellationToken cancellationToken = default);
Task RollbackTransactionAsync(CancellationToken cancellationToken = default);
Task<int> CommitAsync(CancellationToken cancellationToken = default);
}