edit and transfer employee to group chnage valistion and set remove icon

This commit is contained in:
SamSys
2025-11-09 15:30:01 +03:30
parent db761ceba8
commit 8b8b5c3e76
13 changed files with 166 additions and 313 deletions

View File

@@ -53,6 +53,11 @@ namespace _0_Framework.InfraStructure
{
return _context.Set<T>().ToList();
}
public async Task<List<T>> GetListByIdList(List<TKey> ids)
{
return await _context.Set<T>().Where(e => ids.Contains(EF.Property<TKey>(e, "id"))).ToListAsync();
}
public void Remove(T entity)
{
_context.Set<T>().Remove(entity);