24 lines
545 B
C#
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
|
|
};
|
|
}
|
|
|
|
}
|