public async Task <ActionResult> DeleteVacancyAsync(string id) { if (string.IsNullOrWhiteSpace(id)) { return(BadRequest("Id Nulo")); } Vacancy vaga = await _services.SearchOneVacancyIdAsync(id); if (vaga.Equals(null)) { return(NotFound("Vaga inesistente")); } await _services.DeleteOneVacancyAsync(vaga); return(Ok("Ok")); }