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
public class DocumentTypeRouteConstraint : IRouteConstraint | |
{ | |
private readonly MatchFunc match; | |
public DocumentTypeRouteConstraint(string documentTypeAlias, MatchFunc match = null) | |
{ | |
this.match = match; | |
DocumentTypeAlias = documentTypeAlias; | |
} |
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
// Use whatever namespacing works for your project. | |
namespace YourSite.Web.Controllers.Api | |
{ | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using System.Web; | |
using System.Web.Http; |
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
// -------------------------------------------------------------------------------------------------------------------- | |
// <copyright file="ContentExtensions.cs" company="Colours B.V."> | |
// © Colours B.V. 2015 | |
// </copyright> | |
// <summary> | |
// The content extensions. | |
// </summary> | |
// -------------------------------------------------------------------------------------------------------------------- | |
namespace Project.Web.Core.Extensions |
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
<template #DefaultTemplate> | |
<inline-editor-group [openInModal]="true" (onSave)="this.doSave()" (onCancel)="this.doCancel()" [(disableSave)]="this?.profileForm.invalid || !this?.profileForm.dirty"> | |
<form class="form-horizontal" [formGroup]="profileForm"> | |
<inline-text-editor formControlName="name" [focusThis]="true" type="text" name="Namn"> | |
<presentation-state> | |
<template let-editor> | |
<div> | |
<i class="fa fa-user" aria-hidden="true"></i> namn | |
</div> | |
<p>{{ editor?.value }}</p> |
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
Preparing to run build script... | |
Running build script... | |
Module directory does not exist. | |
Analyzing build script... | |
Analyzing D:/Workspaces/BlueLeet/Websites/ReproProject/Build/ReproProject.UI.cake... | |
Processing build script... | |
Creating script session... | |
Using prerelease build of Roslyn. | |
Adding reference to mscorlib.dll... | |
Adding reference to System.Core.dll... |
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
//------------------------------------------------------------------------------ | |
// <auto-generated> | |
// This code was generated by Cake. | |
// </auto-generated> | |
//------------------------------------------------------------------------------ | |
using System.Reflection; | |
using System.Runtime.InteropServices; | |
using System; | |
using BlueLeet.Core.Attributes; |
OlderNewer