public void CrearRegion(int id, string description) { Region r = new Region() { RegionID = id, RegionDescription = description }; dao.Create(r, connstr); CargarRegiones(); }
protected void btnNuevo_Click(object sender, EventArgs e) { Region reg = new Region { RegionID = Convert.ToInt32(this.txtRegionId.Text.Trim()), RegionDescription = this.txtDescription.Text.Trim() }; RegionDAO regionDAO = new RegionDAO(); regionDAO.Create(reg, connstr); this.CleanUp(); }
static void Main(string[] args) { RegionDAO daos = new RegionDAO(); daos.Create(); }
static void Main(string[] args) { RegionDAO regDao = new RegionDAO(); regDao.Create(); }