sorting recitation profiles by isdefault
This commit is contained in:
parent
dbe2cdc16c
commit
11414d95f6
@ -1120,8 +1120,13 @@ namespace RMuseum.Services.Implementation
|
||||
try
|
||||
{
|
||||
List<UserRecitationProfileViewModel> profiles = new List<UserRecitationProfileViewModel>();
|
||||
|
||||
foreach(UserRecitationProfile p in (await _context.UserRecitationProfiles.Include(p => p.User).Where(p => p.UserId == userId).ToArrayAsync()))
|
||||
|
||||
foreach (UserRecitationProfile p in (await _context.UserRecitationProfiles.Include(p => p.User).Where(p => p.UserId == userId && p.IsDefault == true).ToArrayAsync()))
|
||||
{
|
||||
profiles.Add(new UserRecitationProfileViewModel(p));
|
||||
}
|
||||
|
||||
foreach (UserRecitationProfile p in (await _context.UserRecitationProfiles.Include(p => p.User).Where(p => p.UserId == userId && p.IsDefault == false).ToArrayAsync()))
|
||||
{
|
||||
profiles.Add(new UserRecitationProfileViewModel(p));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user