示例#1
0
 /// <summary>
 /// If <paramref name="result"/> is not succeeded throwns <see cref="MilvaUserFriendlyException"/>.
 /// </summary>
 /// <param name="result"></param>
 /// <param name="seperator"></param>
 public static void ThrowErrorMessagesIfNotSuccess(this IdentityResult result, char seperator)
 {
     if (!result.Succeeded)
     {
         throw new MilvaUserFriendlyException(result.DescriptionJoin(seperator));
     }
 }