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