/** * Método para crear nuevo registro */ public static void insert(users user) { using (var conn = new db_entities()) { try { conn.SP_USER_INSERT(user.name, user.email, user.password, user.rol_id, user.unit_id, DateTime.Now, 1); } catch (Exception e) { throw e; } } }