PIBD-23_Fomichev_V.S._Famil.../ProjectFamilyBudget/Entities/ExpenseCategory.cs
2024-10-28 11:19:57 +04:00

24 lines
545 B
C#

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 ExpenseCategory
{
public int Id { get; private set; }
public ExpenseCategoryType Category { get; private set; }
public static ExpenseCategory CreateEntity(int id, ExpenseCategoryType category)
{
return new ExpenseCategory
{
Id = id,
Category = category
};
}
}