source: ChapterX.Application/Chapter/Commands/AddRequest.cs@ 0b502c2

main
Last change on this file since 0b502c2 was b373fea, checked in by kikisrbinoska <srbinoskakristina07@…>, 2 weeks ago

Fixes for authentication and auhtorization\

  • Property mode set to 100644
File size: 371 bytes
RevLine 
[877c13c]1using MediatR;
[b373fea]2using System.ComponentModel.DataAnnotations;
[877c13c]3
4namespace ChapterX.Application.Chapter.Commands
5{
6 public record AddRequest(
[b373fea]7 [Range(1, int.MaxValue)] int Number,
8 [Required][MaxLength(200)] string Name,
9 [Required][MaxLength(300)] string Title,
10 [Required] string Content,
[877c13c]11 int StoryId
12 ) : IRequest<AddResponse>;
13}
Note: See TracBrowser for help on using the repository browser.