A lot of changes
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
using Ardalis.Result;
|
||||
using Mediator;
|
||||
using Musify.Application.Abstractions.Application;
|
||||
using Musify.Application.PlayLists.Responses;
|
||||
using Musify.Domain.Entities;
|
||||
|
||||
namespace Musify.Application.PlayLists.Commands
|
||||
{
|
||||
@@ -10,22 +8,6 @@ namespace Musify.Application.PlayLists.Commands
|
||||
Guid UserId,
|
||||
string Name,
|
||||
string Description,
|
||||
IFileData? Picture)
|
||||
: ICommand<Result<PlayListApplicationResponse>>
|
||||
{
|
||||
public static PlayList ToEntity(CreatePlayListCommand command, string originalKey, string smallKey, string mediumKey, string largeKey)
|
||||
{
|
||||
return new PlayList
|
||||
{
|
||||
UserId = command.UserId,
|
||||
Name = command.Name,
|
||||
NormalizedName = command.Name.Trim().ToUpperInvariant(),
|
||||
Description = command.Description,
|
||||
OriginalPictureName = originalKey,
|
||||
SmallPictureName = smallKey,
|
||||
MediumPictureName = mediumKey,
|
||||
LargePictureName = largeKey,
|
||||
};
|
||||
}
|
||||
}
|
||||
string? OriginalPictureName)
|
||||
: ICommand<Result<PlayListApplicationResponse>>;
|
||||
}
|
||||
Reference in New Issue
Block a user