2024-11-03 16:04:27 +04:00
|
|
|
|
using ProjectFamilyBudget.Entities.Enums;
|
|
|
|
|
using System;
|
2024-10-28 11:18:20 +04:00
|
|
|
|
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;
|
|
|
|
|
|
2024-11-03 16:04:27 +04:00
|
|
|
|
public FamilyType FamilyType { get; private set; }
|
|
|
|
|
|
|
|
|
|
public static Family CreateFamily(int id, string name, FamilyType familyType)
|
2024-10-28 11:18:20 +04:00
|
|
|
|
{
|
|
|
|
|
return new Family
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
2024-11-03 16:04:27 +04:00
|
|
|
|
Name = name,
|
|
|
|
|
FamilyType = familyType
|
2024-10-28 11:18:20 +04:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|