36 lines
843 B
C#
36 lines
843 B
C#
// Copyright (c) .NET Foundation. All rights reserved.
|
|
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
|
|
|
using Microsoft.AspNet.Mvc;
|
|
|
|
namespace ValueProvidersWebSite
|
|
{
|
|
public class HomeController
|
|
{
|
|
public string TestValueProvider(string test)
|
|
{
|
|
return test;
|
|
}
|
|
|
|
public string DefaultValueProviders(string test)
|
|
{
|
|
return test;
|
|
}
|
|
|
|
[HttpGet("/RouteTest/{test}")]
|
|
public string RouteValueProviders(string test)
|
|
{
|
|
return test;
|
|
}
|
|
|
|
public string GetFlagValuesAsString(FlagsEnum flags)
|
|
{
|
|
return flags.ToString();
|
|
}
|
|
|
|
public int GetFlagValuesAsInt(FlagsEnum flags)
|
|
{
|
|
return (int)flags;
|
|
}
|
|
}
|
|
} |