using LCU.Library.Internal.ApiResponse.Models; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace LCU.Library.Internal.IncentiveApiModels.Requests { public class GoalDispersalRequest : ReturnResponse { public int MonthsBack { get; set; } = -1; public List GoalDispersalNotification { get; set; } [NotMapped] public DateTime StartDate { get { var datePeriod = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1); datePeriod = datePeriod.AddMonths(MonthsBack); return datePeriod; } } } }