public async Task <IActionResult> Inserir(Empresas empresa) { try { Empresas newEmpresa = await _service.Inserir(empresa); return(Ok(newEmpresa)); } catch (Exception ex) { return(UnprocessableEntity(new { ex.Message, Status = 422 })); } }