public async Task<ActionResult> Put([FromBody] ProjetoEntity projeto) { if (!ModelState.IsValid) { return BadRequest(ModelState); } try { var result = await _servicoprojetos.Put(projeto); if (result != null) { return Ok(result); } else { return BadRequest(); } } catch (ArgumentException ex) { return StatusCode((int)HttpStatusCode.InternalServerError, ex.Message); } }