26 lines
655 B
C#
26 lines
655 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 Id { get; private set; }
|
|
public int Size { get; private set; }
|
|
public int QuantityInStock { get; private set; }
|
|
public int NumberStorage { get; private set; }
|
|
public static Storage CreateEntity(int id, int size, int quantityInStock, int numberStorage)
|
|
{
|
|
return new Storage
|
|
{
|
|
Id = id,
|
|
Size = size,
|
|
QuantityInStock = quantityInStock,
|
|
NumberStorage = numberStorage
|
|
};
|
|
}
|
|
}
|