26 lines
772 B
C#
26 lines
772 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ProjectFamilyBudget.Entities;
|
|
|
|
public class PeopleExpense
|
|
{
|
|
public int Id { get; private set; }
|
|
public int PeopleId { get; private set; }
|
|
public DateTime DataReceipt { get; private set; }
|
|
public IEnumerable<ExpensePeopleExpense> ExpensePeopleExpenses { get; private set; } = [];
|
|
public static PeopleExpense CreateOperation(int id, int peopleId, IEnumerable<ExpensePeopleExpense> expensePeopleExpenses)
|
|
{
|
|
return new PeopleExpense
|
|
{
|
|
Id = id,
|
|
PeopleId = peopleId,
|
|
DataReceipt = DateTime.Now,
|
|
ExpensePeopleExpenses = expensePeopleExpenses
|
|
};
|
|
}
|
|
}
|