24 lines
705 B
C#
24 lines
705 B
C#
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<string> 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;
|
|
}
|
|
}
|
|
}
|
|
}
|