public async Task <IActionResult> ApplyToVacancy([FromBody] InterviewDto interviewDto) { if (ModelState.IsValid) { var interview = _interviewService.AddInterview(interviewDto); await _hubContext.Clients.All.SendAsync("AppliedToVacancy", interview); return(StatusCode(StatusCodes.Status201Created)); } return(BadRequest()); }