public async Task <IActionResult> CreateVacancy(VacancyDto data) { var sent = await _repo.CreateVacancy(new Core.Models.VacancyModel { JobId = data.JobId, CompanyName = data.CompanyName, Position = data.Position, Description = data.Description, Requirement = data.Requirement }); if (sent) { return(Ok("Request Successful")); } return(BadRequest("Unable to process your request")); }