main
|
Last change
on this file since 99c1e45 was 99c1e45, checked in by kikisrbinoska <srbinoskakristina07@…>, 11 days ago |
|
Fixed writer section and admin management
|
-
Property mode
set to
100644
|
|
File size:
433 bytes
|
| Line | |
|---|
| 1 | using MediatR;
|
|---|
| 2 | using System.ComponentModel.DataAnnotations;
|
|---|
| 3 |
|
|---|
| 4 | namespace ChapterX.Application.Story.Commands
|
|---|
| 5 | {
|
|---|
| 6 | public record AddRequest(
|
|---|
| 7 | bool MatureContent,
|
|---|
| 8 | [Required][MaxLength(200)] string Title,
|
|---|
| 9 | [Required][MaxLength(500)] string ShortDescription,
|
|---|
| 10 | [MaxLength(2048)] string? Image,
|
|---|
| 11 | [Required] string Content,
|
|---|
| 12 | int UserId,
|
|---|
| 13 | List<string> Genres
|
|---|
| 14 | ) : IRequest<AddResponse>;
|
|---|
| 15 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.