Ignore:
Timestamp:
08/24/26 20:57:09 (13 days ago)
Author:
kikisrbinoska <srbinoskakristina07@…>
Branches:
main
Parents:
a6e33d1
Message:

Added corrected entitef from the ER diagram and changes for the logic to be coresponding to the ddl

Location:
ChapterX.Application/Story/Commands
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChapterX.Application/Story/Commands/AddHandler.cs

    ra6e33d1 re882b92  
    3535                    Image = request.Image,
    3636                    Content = request.Content,
     37                    Status = "draft",
    3738                    UserId = request.UserId,
    3839                    CreatedAt = DateTime.UtcNow,
  • ChapterX.Application/Story/Commands/UpdateHandler.cs

    ra6e33d1 re882b92  
    3030            story.Image = request.Image;
    3131            story.Content = request.Content;
     32            if (request.Status is not null)
     33                story.Status = request.Status;
    3234            story.UpdatedAt = DateTime.UtcNow;
    3335
  • ChapterX.Application/Story/Commands/UpdateRequest.cs

    ra6e33d1 re882b92  
    33namespace ChapterX.Application.Story.Commands
    44{
    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>;
    66}
Note: See TracChangeset for help on using the changeset viewer.