@CrayonGroupSCA, they send me an email on Monday 20 May :
"It is planned for the next 7-10 days."
So it should be today or tomorrow...
Ok i will probably do !
Maybe ANZ & Grial can make a deal and you can sell ANZ + Grial UI Kit with a special price... just an idea :)
Ok thanks, it would be useful to add a screen/(tab in User info) to monitor all notifications for users.
Thanks
Thanks, i removed bootstrap-rtl and corrected jquery ui
Thanks it helped !
Finally, when i use an int? array it's working...
public class GetCandidatsInput : PagedAndSortedInputDto, IShouldNormalize
{
public string Filter { get; set; }
[CanBeNull] public int?[] Metiers { get; set; }
[CanBeNull] public int?[] Statuts { get; set; }
public int? PourcentageMini { get; set; }
public int? PourcentageMaxi { get; set; }
public string Region { get; set; }
public void Normalize()
{
if (string.IsNullOrEmpty(Sorting))
{
Sorting = "Name,Surname";
}
}
}
I don't really understand why...
Here is my AppService code :
public async Task<PagedResultDto<CandidatListDto>> GetCandidats(GetCandidatsInput input)
{
var query = UserManager.Users
.Where(u => u.CandidatId.HasValue)
.WhereIf((input.Metiers ?? throw new InvalidOperationException()).Any(x=>x.HasValue) , u => input.Metiers.Contains(u.Candidat.MetierCode))
.WhereIf((input.Statuts ?? throw new InvalidOperationException()).Any(x => x.HasValue), u => input.Statuts.Contains(u.Candidat.StatutInscriptionCode))
.WhereIf(input.PourcentageMini.HasValue, u => u.Candidat.PourcentageCompletudeProfil >= input.PourcentageMini.Value)
.WhereIf(input.PourcentageMaxi.HasValue, u => u.Candidat.PourcentageCompletudeProfil <= input.PourcentageMaxi.Value)
.WhereIf(!input.Region.IsNullOrWhiteSpace(), u => u.Candidat.Adresse.Region.Equals(input.Region))
.WhereIf(
!input.Filter.IsNullOrWhiteSpace(),
u =>
u.Name.Contains(input.Filter) ||
u.Surname.Contains(input.Filter) ||
u.UserName.Contains(input.Filter) ||
u.PhoneNumber.Contains(input.Filter) ||
u.EmailAddress.Contains(input.Filter)
);
var candidatsCount = await query.CountAsync();
var candidats = await query
.OrderBy(input.Sorting)
.PageBy(input)
.Select(x => new CandidatListDto
{
Id = x.Id,
PhotoUrl = x.PhotoUrl.IsNullOrEmpty() ? BlobConsts.Avatars.DefaultImageFilePath : $"{_appConfiguration["App:AzureContainerUrlBase"] + _appConfiguration["App:AzureAvatarContainerName"]}/{x.PhotoUrl}",
FullName = x.FullName,
CreationTime = x.CreationTime,
Statut = StatutInscriptionCandidatsConsts.StatutsInscriptionKeyValuePairs.FirstOrDefault(p => p.Key.Equals(x.Candidat.StatutInscriptionCode)).Value,
Metier = x.Candidat.MetierAutre.IsNullOrEmpty() ? MetiersConsts.MetiersKeyValuePairs.FirstOrDefault(p => p.Key.Equals(x.Candidat.MetierCode)).Value : x.Candidat.MetierAutre
})
.ToListAsync();
var candidatsListDtos = ObjectMapper.Map<List<CandidatListDto>>(candidats);
return new PagedResultDto<CandidatListDto>(
candidatsCount,
candidatsListDtos
);
}
Yes but i need to give access to all permissions like this code :
var fullAdminRole = _roleManager.Roles.Single(r => r.Name == XXXXXX);
await _roleManager.GrantAllPermissionsAsync(fullAdminRole);
Where is the best place for doing this in startup ? In SeedHelper ?
If so, how can i get the roleManager, should i get it from DI ?
Thanks