public RecurringIncomeDto(IRecurringIncome model) : base(model.Id) { Start = model.Start.ToShortDateString(); End = model.End.ToShortDateString(); Children = new List <RecurringEntityChildDto>(); Name = model.Name; Notes = model.Notes; Amount = model.Amount; Recurrence = model.Recurrence; }
public IList <IIncome> GetChildIncomes(IRecurringIncome recurringIncome) { return(recurringIncome.Children(_repository)); }
public RecurringIncomeDto(IRecurringIncome model, IList <IIncome> children) : this(model) { Children = children.Select(t => new RecurringEntityChildDto(t)).ToList(); }