14 lines
448 B
C#
14 lines
448 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace API.DTOs.ReadingLists;
|
|
|
|
/// <summary>
|
|
/// DTO for moving a reading list item to another position within the same list
|
|
/// </summary>
|
|
public sealed record UpdateReadingListPosition
|
|
{
|
|
[Required] public int ReadingListId { get; set; }
|
|
[Required] public int ReadingListItemId { get; set; }
|
|
public int FromPosition { get; set; }
|
|
[Required] public int ToPosition { get; set; }
|
|
}
|