Exemplo n.º 1
0
        public async Task <IActionResult> OnPostMarkAllAsSent()
        {
            try
            {
                Docs docs = new Docs(NodeContext);
                await docs.DespoolAll();

                RouteValueDictionary route = new();
                route.Add("Printed", false);

                return(RedirectToPage("./Index", route));
            }
            catch (Exception e)
            {
                NodeContext.ErrorLog(e);
                throw;
            }
        }