Add and remove tracks from playlists (commands + handlers with ownership checks)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
using Ardalis.Result;
|
||||
using Mediator;
|
||||
|
||||
namespace Musify.Application.PlayLists.Commands
|
||||
{
|
||||
public record AddTrackToPlayListCommand(long UserId, Guid PlayListId, Guid TrackId)
|
||||
: ICommand<Result>;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
using Ardalis.Result;
|
||||
using Mediator;
|
||||
|
||||
namespace Musify.Application.PlayLists.Commands
|
||||
{
|
||||
public record RemoveTrackFromPlayListCommand(long UserId, Guid PlayListId, Guid TrackId)
|
||||
: ICommand<Result>;
|
||||
}
|
||||
Reference in New Issue
Block a user