public async Task GetVacantReports([FromBody] GenContentMultiReturn[] model) { try { var user = _userRepo.GetUser(); var destinations = model.Select(m => m.Destination); var parameters = new TriggerVacantBatchModel { destinations = string.Join(",", destinations), userFirstName = user.FirstName, userLastName = user.LastName, userEmail = user.Email, userRoles = string.Join(",", user.Roles), }; await _reportRepo.TriggerVacantBatch(parameters); } catch (Exception e) { Logger.Error(e, "Could not trigger vacant batch"); throw; } }