ProjectLib/ProjectLibrary/Entites/Orders.cs

28 lines
706 B
C#
Raw Normal View History

2024-11-12 23:13:20 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectLibrary.Entites
{
public class Orders
{
public int Id { get; private set; }
public int OrderDate { get; private set; }
public int ReturnDate { get; private set; }
public int ReaderID { get; private set; }
public static Orders CreateEntity(int id, int orderDate, int returnDate, int readerID)
{
return new Orders
{
Id = id,
OrderDate = orderDate,
ReturnDate = returnDate,
ReaderID = readerID
};
}
}
}