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
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
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
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 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
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
$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
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
<%= 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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
Licensed to the Apache Software Foundation (ASF) under one or more | |
contributor license agreements. See the NOTICE file distributed with | |
this work for additional information regarding copyright ownership. | |
The ASF licenses this file to You under the Apache License, Version 2.0 | |
(the "License"); you may not use this file except in compliance with | |
the License. You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 |