25 lines
668 B
C#
25 lines
668 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ProjectFamilyBudget.Entities;
|
|
|
|
public class IncomePeopleIncome
|
|
{
|
|
public int PeopleIncomeId { get; private set; }
|
|
public int IncomeId { get; private set; }
|
|
public int Sum { get; private set; }
|
|
public string IncomeName { get; private set; } = string.Empty;
|
|
public static IncomePeopleIncome CreateElement(int peopleIncomeId,int incomeId, int sum)
|
|
{
|
|
return new IncomePeopleIncome
|
|
{
|
|
PeopleIncomeId = peopleIncomeId,
|
|
IncomeId = incomeId,
|
|
Sum = sum
|
|
};
|
|
}
|
|
}
|