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 ExpensePeopleExpenses { get; private set; } = []; public static PeopleExpense CreateOperation(int id, int peopleId, IEnumerable expensePeopleExpenses) { return new PeopleExpense { Id = id, PeopleId = peopleId, DataReceipt = DateTime.Now, ExpensePeopleExpenses = expensePeopleExpenses }; } }