public async Task <IActionResult> DeleteConfirmed(int id)
        {
            int userId = int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value);
            var tbUser = await _context.TblUsers.AsNoTracking().FirstOrDefaultAsync(a => a.Id == userId);

            RestAccess ra = new RestAccess(tbUser.Id.ToString(), tbUser.RestPasswort, Constants.ServiceClientEndPointWithApiPrefix);
            await ra.DeleteMeetingWeb(new ExRemoveMeetingRequest { MeetingId = id, UserType = EnumUserType.Customer, UserId = userId, CheckPassword = WebAppSettings.CheckPassword });

            return(RedirectToAction(nameof(Index)));
        }
        public async Task <IActionResult> DeleteConfirmed(int id)
        {
            var tableAppointment = await _context.TblAppointments.FindAsync(id);

            var tbUser = await _context.TblUsers.AsNoTracking().FirstOrDefaultAsync(a => a.Id == tableAppointment.UserId);

            RestAccess ra = new RestAccess(tbUser.Id.ToString(), tbUser.RestPasswort, Constants.ServiceClientEndPointWithApiPrefix);

            var r = new ExRemoveMeetingRequest
            {
                MeetingId     = id,
                UserId        = tableAppointment.UserId,
                UserType      = EnumUserType.ShopEmployee,
                CheckPassword = WebAppSettings.CheckPassword,
            };

            var xxx = await ra.DeleteMeetingWeb(r);

            return(RedirectToAction(nameof(Index)));
        }