private void LoadMarca()
 {
     Model.Marca m = new Model.Marca();
     marca.DataTextField  = "Descricao";
     marca.DataValueField = "Id";
     marca.DataSource     = m.Find();
     marca.DataBind();
 }
 protected void Save(object sender, EventArgs e)
 {
     Model.Marca m = new Model.Marca();
     m.Descricao = descricao.Text;
     m.Save();
     UpdateGrid();
     descricao.Text = "";
     descricao.Focus();
 }
 protected void Delete(object sender, EventArgs e)
 {
     Model.Marca m = new Model.Marca();
     m.Id = Convert.ToInt32(idelete.Text);
     m.Delete();
     UpdateGrid();
     idelete.Text = "";
     idelete.Focus();
 }
 protected void UpdateGrid()
 {
     Model.Marca m = new Model.Marca();
     gridMarca.DataSource = m.Find();
     gridMarca.DataBind();
 }