main
|
Last change
on this file was b373fea, checked in by kikisrbinoska <srbinoskakristina07@…>, 12 days ago |
|
Fixes for authentication and auhtorization\
|
-
Property mode
set to
100644
|
|
File size:
371 bytes
|
| Line | |
|---|
| 1 | using MediatR;
|
|---|
| 2 | using System.ComponentModel.DataAnnotations;
|
|---|
| 3 |
|
|---|
| 4 | namespace ChapterX.Application.Chapter.Commands
|
|---|
| 5 | {
|
|---|
| 6 | public record AddRequest(
|
|---|
| 7 | [Range(1, int.MaxValue)] int Number,
|
|---|
| 8 | [Required][MaxLength(200)] string Name,
|
|---|
| 9 | [Required][MaxLength(300)] string Title,
|
|---|
| 10 | [Required] string Content,
|
|---|
| 11 | int StoryId
|
|---|
| 12 | ) : IRequest<AddResponse>;
|
|---|
| 13 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.