17 lines
517 B
C#
17 lines
517 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.AspNetCore.Mvc;
|
|
|
|
namespace InlineConstraintSample.Web.Controllers
|
|
{
|
|
[Route("book/[action]")]
|
|
public class Isbn13Controller : Controller
|
|
{
|
|
[HttpGet("{isbnNumber:IsbnDigitScheme13}")]
|
|
public string Index(string isbnNumber)
|
|
{
|
|
return "13 Digit ISBN Number " + isbnNumber;
|
|
}
|
|
}
|
|
} |