hanyadikhetvan/DTO/HanyadikHetVanDTO.cs

13 lines
320 B
C#
Raw Normal View History

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 15:56:13 +01:00
public int HanyadikHet => (DateTime.Now - (DateTime.Parse(Environment.GetEnvironmentVariable("HANYADIKHET_STARTDATE")))).Days / 7;
2021-02-08 20:48:10 +01:00
}
}