Add project files
This commit is contained in:
14
T120B165-ImgBoard/Dtos/Tag/CreateTagDto.cs
Normal file
14
T120B165-ImgBoard/Dtos/Tag/CreateTagDto.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using T120B165_ImgBoard.Models;
|
||||
|
||||
namespace T120B165_ImgBoard.Dtos.Tag;
|
||||
|
||||
public record CreateTagDto(
|
||||
[Required]
|
||||
TagType Type,
|
||||
[Required]
|
||||
[StringLength(64)]
|
||||
string Name
|
||||
);
|
||||
|
||||
public record EditTagDto([Required] TagType Type);
|
||||
Reference in New Issue
Block a user