using Luticate2.Auth.Dbo.Result; namespace Luticate2.Auth.Exceptions { public static class LuExceptionsExtensions { public static void Throw(this LuResult result) { throw new LuResultException(result.To()); } public static LuResult ThrowIfNotSuccess(this LuResult result) { if (!result) { result.Throw(); } return result; } } }