void getFlora() { try { Controllers.FloraControllers obFloraControllers = new Controllers.FloraControllers(); rpFlora.DataSource = obFloraControllers.getFlora(); rpFlora.DataBind(); } catch (Exception ew) { throw ew; } }
public void getFlora() { try { Controllers.FloraControllers obFloraControllers = new Controllers.FloraControllers(); List <logica.Models.clsFlora> ltsclsFlora = obFloraControllers.getFlora(); if (ltsclsFlora.Count > 0) { gvwDatos.DataSource = ltsclsFlora; } else { gvwDatos.DataSource = null; } gvwDatos.DataBind(); }catch (Exception ew) { throw ew; } }