public bool Insert(Paciente entity) { bool ret = false; ret = Validate(entity); if (ret) { // TODO: Create INSERT code here try { var repository = new PacienteRepositorio(new Context()); repository.InserirPaciente(entity); repository.Salvar(); } catch (Exception) { } } return ret; }