using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ProjectShoeShop.Entities.Enums;

namespace ProjectShoeShop.Entities;

public class Supply
{
    public int Id { get; private set; }

    public DateTime DateOfReceipt { get; private set; }

    public SupplyType SupplyType { get; private set; }

    public IEnumerable<SupplyShoes> SupplyShoes { get; private set; } = [];

    public static Supply CreateEntity(int id, SupplyType supplytype, DateTime date,IEnumerable<SupplyShoes> supplyShoes)
    {
        return new Supply
        {
            Id = id,
            DateOfReceipt = date,
            SupplyType = supplytype,
            SupplyShoes = supplyShoes
        };
    }
}
