Implemented the ability to update a library including folders.

This commit is contained in:
Joseph Milazzo 2021-01-04 13:06:01 -06:00
parent ac2b40aba6
commit 219f6e675a
5 changed files with 37 additions and 7 deletions

View file

@ -2,10 +2,10 @@
namespace API.DTOs
{
// NOTE: Should this be a Record? https://www.youtube.com/watch?v=9Byvwa9yF-I
public class UpdateLibraryDto
{
public string Username { get; init; }
public IEnumerable<LibraryDto> SelectedLibraries { get; init; }
public int Id { get; init; }
public string Name { get; init; }
public IEnumerable<string> Folders { get; init; }
}
}

View file

@ -0,0 +1,10 @@
using System.Collections.Generic;
namespace API.DTOs
{
public class UpdateLibraryForUserDto
{
public string Username { get; init; }
public IEnumerable<LibraryDto> SelectedLibraries { get; init; }
}
}