public IActionResult Index() { var tempInfo = _infoService.Get(); var last = tempInfo.LastDelete > tempInfo.Epoch ? tempInfo.LastDelete.ToString("o") : "None yet"; object info = new { Epoch = tempInfo.Epoch.ToString("o").Split(".")[0] + "Z", Last = last, tempInfo.Counter }; var uptime = DateTime.UtcNow.Subtract(tempInfo.Epoch).Duration(); var html = Template.Parse(_template).Render(new { Info = info, Uptime = uptime }); return(Content(html, "text/html")); }
public Task <List <ProductInfo> > GetAll() { return(_infoService.Get()); }