PIBD-23_Fomichev_V.S._Famil.../ProjectFamilyBudget/Entities/Family.cs

25 lines
452 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectFamilyBudget.Entities;
public class Family
{
public int Id { get; private set; }
public string Name { get; private set; } = string.Empty;
public static Family CreateEntity(int id, string name)
{
return new Family
{
Id = id,
Name = name
};
}
}