2024-11-29 15:40:02 +04:00
|
|
|
|
using ShoeStore.Entities.Enums;
|
|
|
|
|
using System;
|
2024-11-14 23:56:25 +04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ShoeStore.Entities;
|
|
|
|
|
|
|
|
|
|
public class Receipt
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; private set; }
|
2024-12-13 11:09:20 +04:00
|
|
|
|
public ProductType ProductType { get; private set; }
|
2024-11-14 23:56:25 +04:00
|
|
|
|
public DateTime DateOfReceipt { get; private set; }
|
|
|
|
|
public int NumberOfPairsReceived { get; private set; }
|
2024-11-29 15:40:02 +04:00
|
|
|
|
//public int StorageSize { get; private set; }
|
2024-11-14 23:56:25 +04:00
|
|
|
|
|
2024-12-21 21:15:47 +04:00
|
|
|
|
public static Receipt CreateOperation(int id,ProductType productType, DateTime date,int numberOfPairsReceived)
|
2024-11-14 23:56:25 +04:00
|
|
|
|
{
|
|
|
|
|
return new Receipt
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
2024-11-29 15:40:02 +04:00
|
|
|
|
ProductType = productType,
|
2024-12-21 21:15:47 +04:00
|
|
|
|
DateOfReceipt = date,
|
2024-11-14 23:56:25 +04:00
|
|
|
|
NumberOfPairsReceived = numberOfPairsReceived,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|