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 Employee
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; private set; }
|
|
|
|
|
public DateTime Date { get; private set; }
|
|
|
|
|
public int NumberStorage { get; private set; }
|
|
|
|
|
public int StorageSize { get; private set; }
|
|
|
|
|
|
2024-11-28 19:51:58 +04:00
|
|
|
|
public static Employee CreateEntity(int id, int numberStorage, int storageSize)
|
2024-11-14 23:56:25 +04:00
|
|
|
|
{
|
|
|
|
|
return new Employee
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
|
|
|
|
Date = DateTime.Now,
|
|
|
|
|
NumberStorage = numberStorage,
|
|
|
|
|
StorageSize = storageSize
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|