public int DeletePersonalLedger(PharmaBusinessObjects.Master.PersonalLedgerMaster p) { try { return(new PersonalLedgerMasterBiz(this.LoggedInUser).DeletePersonalLedger(p)); } catch (Exception) { throw; } }
void EditPersonLedger() { if (dgvPersonalLedger.SelectedRows.Count == 0) { MessageBox.Show("Please select atleast one row to edit"); } PharmaBusinessObjects.Master.PersonalLedgerMaster model = (PharmaBusinessObjects.Master.PersonalLedgerMaster)dgvPersonalLedger.SelectedRows[0].DataBoundItem; OpenAddEdit(model.PersonalLedgerId); }