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