PIBD_21_Basalov_A_D_Project.../project/ProjectTourAgency/Enities/AddMoney.cs

29 lines
697 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectTourAgency.Enities
{
public class AddMoney
{
public int Id { get; private set; }
public int ClientId { get; private set; }
public DateTime Date { get; private set; }
public int MoneyAmount{ get; private set; }
public static AddMoney CreateEntity(int id,int cId,
DateTime date, int money)
{
return new AddMoney
{
Id = id,
ClientId = cId,
Date = date,
MoneyAmount = money
};
}
}
}