Контракты

This commit is contained in:
Халимов Рустам
2026-03-29 23:39:17 +03:00
parent 22bc964f27
commit 0209802e9e
141 changed files with 1292 additions and 725 deletions
@@ -1,10 +1,18 @@
using System.Threading;
using System.Threading;
using System.Threading.Tasks;
using Knot.Modules.Profiles.Domain;
using Knot.Modules.Profiles.Contracts.Domain;
using Knot.Shared.Kernel;
namespace Knot.Modules.Profiles.Infrastructure.Database;
public class ProfilesUnitOfWork : IProfilesUnitOfWork
internal class ProfilesUnitOfWork : IProfilesUnitOfWork
{
public Task SaveChangesAsync(CancellationToken ct = default) => Task.CompletedTask;
public IProfileRepository ProfileRepository { get; }
public ProfilesUnitOfWork(IProfileRepository profileRepository)
{
ProfileRepository = profileRepository;
}
public Task<int> SaveChangesAsync(CancellationToken ct = default) => Task.FromResult(1);
}