Changeset e882b92 for ChapterX.Application/Story/Commands
- Timestamp:
- 08/24/26 20:57:09 (13 days ago)
- Branches:
- main
- Parents:
- a6e33d1
- Location:
- ChapterX.Application/Story/Commands
- Files:
-
- 3 edited
-
AddHandler.cs (modified) (1 diff)
-
UpdateHandler.cs (modified) (1 diff)
-
UpdateRequest.cs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ChapterX.Application/Story/Commands/AddHandler.cs
ra6e33d1 re882b92 35 35 Image = request.Image, 36 36 Content = request.Content, 37 Status = "draft", 37 38 UserId = request.UserId, 38 39 CreatedAt = DateTime.UtcNow, -
ChapterX.Application/Story/Commands/UpdateHandler.cs
ra6e33d1 re882b92 30 30 story.Image = request.Image; 31 31 story.Content = request.Content; 32 if (request.Status is not null) 33 story.Status = request.Status; 32 34 story.UpdatedAt = DateTime.UtcNow; 33 35 -
ChapterX.Application/Story/Commands/UpdateRequest.cs
ra6e33d1 re882b92 3 3 namespace ChapterX.Application.Story.Commands 4 4 { 5 public record UpdateRequest(int Id, bool MatureContent, string Title, string ShortDescription, string? Image, string Content, int CallerId = 0) : IRequest<UpdateResponse>;5 public record UpdateRequest(int Id, bool MatureContent, string Title, string ShortDescription, string? Image, string Content, string? Status = null, int CallerId = 0) : IRequest<UpdateResponse>; 6 6 }
Note:
See TracChangeset
for help on using the changeset viewer.
