This file contains hidden or 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
<%= AntiForgery.GetHtml() %> |
This file contains hidden or 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
contactModule.controller('QuoteRequestController', ['$scope', '$q', '$timeout', 'QuoteRequestService', function ($scope, $q, $timeout, QuoteRequestService) | |
{ | |
$scope.saveData = new QuoteRequestService(); | |
$scope.saveData.Title = "my string value"; | |
$scope.saveData.$save(function () | |
{ | |
//do something after save | |
}); | |
}]); |
This file contains hidden or 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
$scope.callWebApiService(SearchService, | |
{ | |
Keywords: searchData.keywords, | |
CategoryPaths: searchData.categoryPaths, | |
SubCategoryPaths: searchData.subCategoryPaths, | |
Types: searchData.types, | |
CurrentPage: $scope.pager.currentPage, | |
DateFrom: $scope.dateFrom, | |
DateTo: $scope.dateTo | |
}) |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Web.Http; | |
using System.Web.Http.Description; | |
using MyProject.Web.Models.Common; | |
using NLog; | |
namespace MyProject.Web.WebApi | |
{ | |
public class DemoController : ApiController |
This file contains hidden or 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
var accordionModule = angular.module('corpApp.accordionContentModule', ['ngRoute']); | |
accordionModule.controller('AccordionContentCtrl', ['$scope', '$controller', 'AccordionContentService', function ($scope, $controller, AccordionContentService) { | |
$scope.populatePageData = function (itemId) | |
{ | |
$scope.callWebApiService(AccordionContentService, { id: itemId }) | |
.then(function (result) | |
{ | |
$scope.HandleResponseErrors(result); |
This file contains hidden or 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
var baseModule = angular.module('corpApp.baseModule', ['ngRoute']); | |
baseModule.controller('BaseCtrl', ['$scope', '$q', '$timeout', function ($scope, $q, $timeout) | |
{ | |
//#region Initialise variables | |
$scope.pageErrors = {}; | |
$scope.data = {}; | |
This file contains hidden or 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
var corpServices = angular.module('corpApp.corpServices', ['ngResource']); | |
(function () | |
{ | |
//#region Common Service Methods | |
var serviceRootPath = '/api/'; | |
//add anti-forgery token to all Authenticated GET and POST requests | |
var AntiForgeryRequest = function (enableCache) | |
{ |
This file contains hidden or 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
param($installPath, $toolsPath, $package, $project) | |
$asms = $package.AssemblyReferences | %{$_.Name} | |
$configName = $project.ConfigurationManager.ActiveConfiguration.ConfigurationName | |
Write-Host "Updating dlls for configuration - ${configName}"; | |
if ($configName -NotLike "*CD") | |
{ | |
Write-Host "Updating dlls for Non-CD (Content Delivery) Environment"; |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<root> | |
<!-- | |
Microsoft ResX Schema | |
Version 2.0 | |
The primary goals of this format is to allow a simple XML format | |
that is mostly human readable. The generation and parsing of the | |
various data types are done through the TypeConverter classes |
This file contains hidden or 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
<?xml version="1.0"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<!--Workbox Plus Module Settings--> | |
<WorkboxPlus> | |
<configuration type="BlackTambourine.Web.Helpers.WorkboxPlusConfig, BlackTambourine.Web"> | |
<!--Enable Page Level Approval - i.e. group children of Pages / Item together in the Workbox--> | |
<param name="EnablePageLevelApproval">true</param> | |