public async Task <ActionResult> PutVacancyAsync(string id, [FromBody] Vacancy editions) { if (string.IsNullOrWhiteSpace(id)) { return(BadRequest("Id Nulo")); } if (!ModelState.IsValid) { return(BadRequest("Modelo Invalido")); } Vacancy vaga = await _services.SearchOneVacancyIdAsync(id); if (vaga.Equals(null)) { return(NotFound("Vaga inesistente")); } await _services.ChangeOneVacancyAsync(vaga, editions); return(Ok("Ok")); }