IdentityResult.cs 593 B

123456789101112131415161718192021222324252627282930
  1. using System.Collections.Generic;
  2. using Microsoft.AspNet.Identity;
  3. namespace IwbZero.IdentityFramework
  4. {
  5. public class IwbIdentityResult : IdentityResult
  6. {
  7. public IwbIdentityResult()
  8. {
  9. }
  10. public IwbIdentityResult(IEnumerable<string> errors)
  11. : base(errors)
  12. {
  13. }
  14. public IwbIdentityResult(params string[] errors)
  15. : base(errors)
  16. {
  17. }
  18. public new static IwbIdentityResult Failed(params string[] errors)
  19. {
  20. return new IwbIdentityResult(errors);
  21. }
  22. }
  23. }