This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// jquery.jqax.js - A plugin for jQuery ajax wrapping some common | |
// functionality aimed at .NET services and page methods | |
// Ben Cull - 18 August 2010 | |
(function($) { | |
$.jQax = function(options) { | |
// Load Defaults and make them public | |
this.defaults = { | |
ShowLoading: true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AddAllClaimAction : ClaimAction | |
{ | |
public AddAllClaimAction() : base(null, null) | |
{ | |
} | |
public override void Run(JObject userData, ClaimsIdentity identity, string issuer) | |
{ | |
var claims = userData.Properties() | |
.Where(x => !x.Value.HasValues) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class AsExpandableExtension | |
{ | |
public static IQueryable<T> AsExpandable<T>(this IQueryable<T> source) | |
{ | |
if (source is ExpandableQuery<T>) | |
{ | |
return (ExpandableQuery<T>)source; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[HtmlTargetElement(Attributes = "is-active-route")] | |
public class ActiveRouteTagHelper : TagHelper | |
{ | |
private IDictionary<string, string> _routeValues; | |
/// <summary>The name of the action method.</summary> | |
/// <remarks>Must be <c>null</c> if <see cref="P:Microsoft.AspNetCore.Mvc.TagHelpers.AnchorTagHelper.Route" /> is non-<c>null</c>.</remarks> | |
[HtmlAttributeName("asp-action")] | |
public string Action { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WordDocumentAttribute : ActionFilterAttribute | |
{ | |
public string DefaultFilename { get; set; } | |
public override void OnActionExecuted(ActionExecutedContext filterContext) | |
{ | |
var result = filterContext.Result as ViewResult; | |
if (result != null) | |
result.MasterName = "~/Views/Shared/_LayoutWord.cshtml"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @__submerchantId_0 int = 147; | |
DECLARE @__startDateLocal_Value_1 datetime2(7) = '2019-01-25'; | |
DECLARE @__endDateLocal_Value_2 datetime2(7) = '2019-03-29'; | |
DECLARE @__p_3 int = 0; | |
DECLARE @__p_4 int = 50; | |
SELECT [x.Payer].[Id], [x.Payer].[AssemblyBuyerId], [x.Payer].[CreatedTimeUtc], [x.Payer].[DisplayId], [x.Payer].[EmailAddress], [x.Payer].[FirstName], [x.Payer].[ImportSource], [x.Payer].[ImportSourceReference], [x.Payer].[IsDeleted], [x.Payer].[LastName], [x.Payer].[MobileNumber], [x.Payer].[Postcode], [x.Payer].[StreetAddress], [x.Payer].[SubMerchantId], [x.Payer].[Suburb], [x].[DisplayId] AS [Id0], | |
( | |
SELECT TOP(1) [y3].[Status] | |
FROM [Attempts] AS [y3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class SubdomainRoute : RouteBase | |
{ | |
public override RouteData GetRouteData(HttpContextBase httpContext) | |
{ | |
if (httpContext.Request == null || httpContext.Request.Url == null) | |
{ | |
return null; | |
} | |
var host = httpContext.Request.Url.Host; |