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
<configuration> | |
<appSettings> | |
<add key="aspnet:AllowAnonymousImpersonation" value="false" /> | |
</appSettings> | |
</configuration> |
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 override IEnumerable<RuleViolation> GetRuleViolations(int orgID) | |
{ | |
if (string.IsNullOrEmpty(FirstName)) | |
yield return new RuleViolation("First Name required", "FirstName"); | |
if (string.IsNullOrEmpty(LastName)) | |
yield return new RuleViolation("Last Name required", "LastName"); | |
if (string.IsNullOrEmpty(Name)) | |
yield return new RuleViolation("Name required", "Name"); | |
if (string.IsNullOrEmpty(Phone)) | |
yield return new RuleViolation("Phone required", "Phone"); |
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 OrgVM | |
{ | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
public string Name { get; set; } | |
public string Phone { get; set; } | |
} |
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 OrgVM | |
{ | |
public string Name { get; set; } | |
public string Phone { get; set; } | |
public string FirstName { get; set; } | |
public string LastName { get; set; } | |
} |
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
<%if(!ViewData.ModelState.IsValid) { %> | |
<div id="save-fail"> | |
<%= Html.ValidationSummary("Please correct the errors and try again.") %> | |
</div> | |
<%} %> | |
<% using (Html.BeginForm("Create", "OrgSetup", FormMethod.Post)){%> | |
<p class="floatLabel"><label for="FirstName">First Name</label></p> | |
<p><label for="LastName">Last Name</label></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
# | |
# TFS.psm1 | |
# | |
Function QueueBuilds { | |
param($serverName, $teamProject, [string[]]$buildDefinitionNames) | |
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.TeamFoundation.Client") | |
[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.TeamFoundation.Build.Client") | |
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
# | |
# Queue Dev Builds | |
# | |
Import-Module $PSScriptRoot\TFS\TFS.psm1 | |
$buildNames = | |
"Service1 - Continuous", | |
"Service1.DB - Continuous", | |
"Service2 - Continuous", |
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
[HttpPost] | |
[ActionName("Index")] | |
public async Task<ActionResult> GetToken() | |
{ | |
var client = new TokenClient( | |
"https://localhost:44333/connect/token", | |
"AuthCode", | |
"secret"); | |
var code = Request.QueryString["code"]; | |
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
PM> update-package FluentValidation | |
Attempting to gather dependencies information for multiple packages with respect to project 'solution\project', targeting '.NETFramework,Version=v4.5.2' | |
Attempting to resolve dependencies for multiple packages | |
update-package : Unable to find package 'IdentityManager'. Existing packages must be restored before performing an install or update. | |
At line:1 char:1 | |
+ update-package FluentValidation | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : NotSpecified: (:) [Update-Package], Exception | |
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.UpdatePackageCommand |
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
Update-Package FluentValidation -Pre |