示例#1
0
 public IActionResult Index()
 {
     return(View(new HomeViewModel()
     {
         VisibleForms = _formsRepository.GetAllVisible(),
         LastChangedTimestamp = TimestampConvert.ConvertToTimestamp(_formsRepository.GetLastChanged())
     }));
 }
示例#2
0
        public IActionResult LastChanged()
        {
            long timestamp = TimestampConvert.ConvertToTimestamp(_formsRepository.GetLastChanged());

            return(Ok(timestamp));
        }