24 lines
601 B
C#
Raw Normal View History

2024-11-05 17:54:04 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectFamilyBudget.Entities;
public class IncomePeopleIncome
{
2024-11-19 18:47:06 +04:00
public int PeopleIncomeId { get; private set; }
2024-11-05 17:54:04 +04:00
public int IncomeId { get; private set; }
public int Sum { get; private set; }
2024-11-19 18:47:06 +04:00
public static IncomePeopleIncome CreateElement(int peopleIncomeId,int incomeId, int sum)
2024-11-05 17:54:04 +04:00
{
return new IncomePeopleIncome
{
2024-11-19 18:47:06 +04:00
PeopleIncomeId = peopleIncomeId,
2024-11-05 17:54:04 +04:00
IncomeId = incomeId,
Sum = sum
2024-11-05 17:54:04 +04:00
};
}
}