public static bool Guardar(Clientes cliente) { bool retorno = false; using (var db = new EjemploDb()) { try { db.Cliente.Add(cliente); db.SaveChanges(); retorno = true; } catch (Exception) { throw; } } return(retorno); }