24 lines
541 B
C#
24 lines
541 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 IncomeCategory
|
|||
|
{
|
|||
|
public int Id { get; private set; }
|
|||
|
public IncomeCategoryType Category { get; private set; }
|
|||
|
|
|||
|
public static IncomeCategory CreateEntity(int id, IncomeCategoryType category)
|
|||
|
{
|
|||
|
return new IncomeCategory
|
|||
|
{
|
|||
|
Id = id,
|
|||
|
Category = category
|
|||
|
};
|
|||
|
}
|
|||
|
}
|