using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProjectShoeShop.Entities;

public class OrderItem
{
    public int Id { get; set; }

    public int ShoesId { get; set; }

    public int NumberOfPairs { get; set; }

    public int Size {  get; set; }

    public static OrderItem CreateElement(int id, int shoesId, int numberOfPairs, int size)
    {
        return new OrderItem 
        {
            Id = id,
            ShoesId = shoesId,
            NumberOfPairs = numberOfPairs,
            Size = size
        };
    }
}
