2024-11-14 23:56:25 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ShoeStore.Entities;
|
|
|
|
|
|
|
|
|
|
public class Storage
|
|
|
|
|
{
|
|
|
|
|
public int Size { get; private set; }
|
|
|
|
|
public int QuantityInStock { get; private set; }
|
|
|
|
|
public int NumberStorage { get; private set; }
|
2024-11-28 19:51:58 +04:00
|
|
|
|
public static Storage CreateEntity(int size, int quantityInStock, int numberStorage)
|
2024-11-14 23:56:25 +04:00
|
|
|
|
{
|
|
|
|
|
return new Storage
|
|
|
|
|
{
|
|
|
|
|
Size = size,
|
|
|
|
|
QuantityInStock = quantityInStock,
|
|
|
|
|
NumberStorage = numberStorage
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|