36 lines
1.0 KiB
C#
Raw Normal View History

2024-11-29 15:40:02 +04:00
using ShoeStore.Entities.Enums;
using System;
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-11-29 15:40:02 +04:00
//public int ProductId { get; private set; }
//public int StorageProductId { get; private set; }
//public int ReceiptNumber {get; private set; }
public int ProductType { get; private set; }
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-29 15:40:02 +04:00
public static Receipt CreateOperation(int id, int productType, int numberOfPairsReceived)
{
return new Receipt
{
Id = id,
2024-11-29 15:40:02 +04:00
ProductType = productType,
//StorageProductId = storageProductId,
//ReceiptNumber = receiptNumber,
DateOfReceipt = DateTime.Now,
NumberOfPairsReceived = numberOfPairsReceived,
2024-11-29 15:40:02 +04:00
//StorageSize = storageSize
};
}
}