mirror of
https://github.com/miawinter98/just-short-it.git
synced 2024-11-13 21:19:53 +00:00
7 lines
268 B
C#
7 lines
268 B
C#
|
using System.ComponentModel.DataAnnotations;
|
|||
|
using Microsoft.AspNetCore.Mvc;
|
|||
|
|
|||
|
namespace JustShortIt.Model;
|
|||
|
|
|||
|
[BindProperties]
|
|||
|
public record UrlRedirect([Required, MinLength(2), MaxLength(16)]string Id, [Required, Url]string Target, [Required]string ExpirationDate);
|