feat(ProfileControlsTFRepository): Zwei asynchrone Lesemethoden wurden zusammengeführt.
This commit is contained in:
parent
1b21ccecf3
commit
05701c10d2
@ -5,8 +5,10 @@ namespace WorkFlow.Infrastructure.Contracts
|
|||||||
{
|
{
|
||||||
public interface IProfileControlsTFRepository : ICRUDRepository<ProfileControlsTF, int>
|
public interface IProfileControlsTFRepository : ICRUDRepository<ProfileControlsTF, int>
|
||||||
{
|
{
|
||||||
Task<IEnumerable<ProfileControlsTF>> ReadAsync(bool isReadonly = true, bool withProfile = true, bool withUser = false, int? profileId = null, int? objId = null, bool? profileActive = null);
|
Task<IEnumerable<ProfileControlsTF>> ReadAsync(
|
||||||
|
bool isReadonly = true,
|
||||||
Task<ProfileControlsTF?> ReadAsync(bool isReadonly = true, bool withProfile = true, bool withUser = false, int? usrId = null, string? username = null, int? profileId = null, int? objId = null, bool? profileActive = null);
|
bool withProfile = true, bool withUser = false,
|
||||||
|
int? usrId = null, string? username = null,
|
||||||
|
int? profileId = null, int? objId = null, bool? profileActive = null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -38,11 +38,16 @@ namespace WorkFlow.Infrastructure.Repositories
|
|||||||
return query;
|
return query;
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<IEnumerable<ProfileControlsTF>> ReadAsync(bool isReadonly = true, bool withProfile = true, bool withUser = true, int? profileId = null, int? objId = null, bool? profileActive = null)
|
public async Task<IEnumerable<ProfileControlsTF>> ReadAsync(
|
||||||
=> await Read(isReadonly: isReadonly, withProfile: withProfile, withUser: withUser, profileId: profileId, objId: objId, profileActive: profileActive).ToListAsync();
|
bool isReadonly = true,
|
||||||
|
bool withProfile = true, bool withUser = true,
|
||||||
public async Task<ProfileControlsTF?> ReadAsync(bool isReadonly = true, bool withProfile = true, bool withUser = false, int? usrId = null, string? username = null, int? profileId = null, int? objId = null, bool? profileActive = null)
|
int? usrId = null, string? username = null,
|
||||||
=> await Read(isReadonly: isReadonly, withProfile: withProfile, withUser: withUser, usrId: usrId, username: username, profileId: profileId, objId: objId, profileActive: profileActive)
|
int? profileId = null, int? objId = null, bool? profileActive = null)
|
||||||
.FirstOrDefaultAsync();
|
=> await Read(
|
||||||
|
isReadonly: isReadonly,
|
||||||
|
withProfile: withProfile, withUser: withUser,
|
||||||
|
usrId: usrId, username: username,
|
||||||
|
profileId: profileId, objId: objId, profileActive: profileActive)
|
||||||
|
.ToListAsync();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user