using Butter.Dtos.Folder;
using Lactose.Models;

namespace Lactose.Mapper;

/// <summary>
/// Provides extension methods for mapping Folder entities to Folder DTOs.
/// </summary>
public static class FolderMapper {
    /// <summary>
    /// Maps a Folder entity to a FolderFullDto.
    /// </summary>
    /// <param name="folder">The Folder entity to map.</param>
    /// <returns>A FolderFullDto containing the mapped data.</returns>
    public static FolderFullDto ToFolderDto(this Folder folder) => new FolderFullDto() {
        Id       = folder.Id,
        BasePath = folder.BasePath,
        Active   = folder.Active
    };
}