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); }
public IActionResult LastChanged() { long timestamp = TimestampConvert.ConvertToTimestamp(_formsRepository.GetLastChanged()); return(Ok(timestamp)); }