Пример #1
0
 public virtual IdentityResult ToIdentityResult(securityDto.SecurityResult resultDto)
 {
     if (resultDto.Succeeded == true)
     {
         return(IdentityResult.Success);
     }
     return(IdentityResult.Failed(resultDto.Errors.Select(x => new IdentityError {
         Description = x
     }).ToArray()));
 }
Пример #2
0
 public static IdentityResult ToIdentityResult(this securityDto.SecurityResult resultDto)
 {
     return(ConverterInstance.ToIdentityResult(resultDto));
 }