示例#1
0
 public static (object, IEnumerable <string>) AsTuple(this IdentityResult ir)
 {
     return(null, ir.GetErrorDescriptions());
 }
 public static TaskResult GetTaskResult(this IdentityResult result)
 {
     return(result.Succeeded
         ? new TaskResult()
         : new TaskResult(result.GetErrorDescriptions()));
 }