add: implement ChangeDeployStatusProject command and handler for updating project deployment status

This commit is contained in:
2025-12-30 11:10:40 +03:30
parent d855684cd7
commit 1e733f3f20
7 changed files with 54 additions and 7 deletions

View File

@@ -43,9 +43,9 @@ public class RepositoryBase<TKey, T> : IRepository<TKey, T> where T : class
return _context.Find<T>(id);
}
public async Task<T?> GetByIdAsync(TKey id)
public async Task<T?> GetByIdAsync(TKey id, CancellationToken cancellationToken = default)
{
return await _context.Set<T>().FindAsync(id);
return await _context.Set<T>().FindAsync([id], cancellationToken);
}
public List<T> Get()