Files
forkmessager/backend/src/Modules/Profiles/Infrastructure/Database/ProfilesUnitOfWork.cs
T

19 lines
516 B
C#

using System.Threading;
using System.Threading.Tasks;
using Knot.Contracts.Profiles.Domain;
using Knot.Shared.Kernel;
namespace Knot.Modules.Profiles.Infrastructure.Database;
internal class ProfilesUnitOfWork : IProfilesUnitOfWork
{
public IProfileRepository ProfileRepository { get; }
public ProfilesUnitOfWork(IProfileRepository profileRepository)
{
ProfileRepository = profileRepository;
}
public Task<int> SaveChangesAsync(CancellationToken ct = default) => Task.FromResult(1);
}