Exemplo n.º 1
0
 public void Update(IncomeCategory incCat)
 {
     try
     {
         Helpers.NonQueryHelper.Update(incCat, "spIncomeCategory", 3);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Exemplo n.º 2
0
 public void Delete(IncomeCategory incCat)
 {
     try
     {
         Helpers.NonQueryHelper.DeleteOnId("spIncomeCategory", 4, incCat.Id);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
 }
Exemplo n.º 3
0
 public void SetStatusId(IncomeCategory incCat, string statusName)
 {
     incCat.StatusID = Helpers.ReaderHelper.SelectId("select id from status where name = '" + statusName + "'");
     Update(incCat);
 }