24 lines
579 B
C#
24 lines
579 B
C#
|
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; }
|
|||
|
public Storage CreateEntity(int size, int quantityInStock, int numberStorage)
|
|||
|
{
|
|||
|
return new Storage
|
|||
|
{
|
|||
|
Size = size,
|
|||
|
QuantityInStock = quantityInStock,
|
|||
|
NumberStorage = numberStorage
|
|||
|
};
|
|||
|
}
|
|||
|
}
|