using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ProjectTourAgency.Enities { public class AddMoney { [Browsable(false)] public int Id { get; private set; } [DisplayName("ID Клиента")] public int ClientId { get; private set; } [DisplayName("Дата")] public DateTime Date { get; private set; } [DisplayName("Размер Пополнение")] public int MoneyAmount { get; private set; } [DisplayName("Клиент")] public string ClientName { get; private set; } = string.Empty; public static AddMoney CreateEntity(int id,int cId, DateTime date, int money) { return new AddMoney { Id = id, ClientId = cId, Date = date, MoneyAmount = money }; } } }