29 lines
612 B
C#
Raw Normal View History

using ProjectFamilyBudget.Entities.Enums;
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 FamilyType FamilyType { get; private set; }
public static Family CreateFamily(int id, string name, FamilyType familyType)
{
return new Family
{
Id = id,
Name = name,
FamilyType = familyType
};
}
}