25 lines
452 B
C#
25 lines
452 B
C#
|
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
|
|||
|
};
|
|||
|
|
|||
|
}
|
|||
|
}
|