public IActionResult Put(Guid id, Newsletter newsletter) { try { //Edita a newsletter _newsletterRepository.Editar(newsletter); //Retorna Ok com os dados da newsletter return(Ok(newsletter)); } catch (Exception ex) { return(BadRequest(ex.Message)); } }