public async Task <ActionResult <List <Alert> > > GetAlertsAsync() { var alerts = await alertRepository.GetAlertsAsync(); return(Ok(alerts)); }