2024-12-06 10:00:35 +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 PeopleIncome
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; private set; }
|
|
|
|
|
public int PeopleId { get; private set; }
|
2025-02-10 20:34:25 +04:00
|
|
|
|
public Object DateReciept { get; private set; }
|
2024-12-06 10:00:35 +04:00
|
|
|
|
public IEnumerable<IncomePeopleIncome> IncomePeopleIncomes { get; private set; } = [];
|
2025-02-10 20:34:25 +04:00
|
|
|
|
public static PeopleIncome CreateOperation(int id, int peopleId, Object dateReciept,IEnumerable<IncomePeopleIncome> incomePeopleIncomes)
|
2024-12-06 10:00:35 +04:00
|
|
|
|
{
|
|
|
|
|
return new PeopleIncome
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
|
|
|
|
PeopleId = peopleId,
|
2025-02-10 20:34:25 +04:00
|
|
|
|
DateReciept = dateReciept,
|
2024-12-06 10:00:35 +04:00
|
|
|
|
IncomePeopleIncomes = incomePeopleIncomes
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|