public async Task <ActionResult <IEnumerable <Calendar> > > GetCalendarByBooked(bool booked) { try { var beauty = await _repository.GetCalendarByBooked(booked); return(Ok(beauty)); } catch (Exception exc) { _logger.LogError($"Error: {exc}"); // transaction.Rollback(); return(NotFound()); } }