Beispiel #1
0
 public IActionResult Index()
 {
     return(View(new HomeViewModel()
     {
         VisibleForms = _formsRepository.GetAllVisible(),
         LastChangedTimestamp = TimestampConvert.ConvertToTimestamp(_formsRepository.GetLastChanged())
     }));
 }
        public bool isExpired()
        {
            if (DateTime.Now >= TimestampConvert.Convert(expires_at))
            {
                return(true);
            }

            return(false);
        }
Beispiel #3
0
        public IActionResult LastChanged()
        {
            long timestamp = TimestampConvert.ConvertToTimestamp(_formsRepository.GetLastChanged());

            return(Ok(timestamp));
        }