public async Task <IActionResult> GetAlert(int Id)//GetAlert(GetByIDDto getAlertDto) { User user = await _auth.GetUser(this.User.Identity.Name); Permissions permissions = await _auth.GetPermissions(user.Id); if (permissions.ViewAlert == false) { return(Unauthorized()); } Alert alert; alert = await _repo.GetAlert(Id); //GetAlert(getAlertDto.Id); return(Ok(alert)); }