2021-02-08 20:48:10 +01:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2021-02-09 16:28:13 +01:00
|
|
|
|
namespace hanyadikhetvan.DTO
|
2021-02-08 20:48:10 +01:00
|
|
|
|
{
|
2021-02-09 16:28:13 +01:00
|
|
|
|
public class HanyadikHetVanDTO
|
2021-02-08 20:48:10 +01:00
|
|
|
|
{
|
2021-02-09 18:23:36 +01:00
|
|
|
|
private readonly DateTime startdate;
|
|
|
|
|
|
|
|
|
|
public HanyadikHetVanDTO(string startdate)
|
|
|
|
|
{
|
|
|
|
|
this.startdate = DateTime.Parse(startdate);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int HanyadikHet => (DateTime.Now - startdate).Days / 7;
|
2021-02-08 20:48:10 +01:00
|
|
|
|
}
|
|
|
|
|
}
|