2024-10-28 11:18:20 +04:00
|
|
|
|
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; }
|
2024-11-03 16:04:27 +04:00
|
|
|
|
public string Category { get; private set; } = string.Empty;
|
2024-10-28 11:18:20 +04:00
|
|
|
|
|
2024-11-03 16:04:27 +04:00
|
|
|
|
public static ExpenseCategory CreateExpenseCategory(int id,string category)
|
2024-10-28 11:18:20 +04:00
|
|
|
|
{
|
|
|
|
|
return new ExpenseCategory
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
|
|
|
|
Category = category
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|