public async Task Handle(DeleteJobApplicationCommand request, CancellationToken cancellationToken) { var appl = await _jobApplicationRepository.GetAsync(request.Id); _jobApplicationRepository.Delete(appl); await _jobApplicationRepository.UnitOfWork.SaveChangesAsync(); _logger.LogInformation("----- Deleted job application: {@Id}", request.Id); }
public void DeleteJobApplication(JobApplication jobApplication) { jobApplicationRepository.Delete(jobApplication); }