private void tool_SwUpdateButtonClicked(object sender, EventArgs e) { var aboneHesap = new AboneHesap(); SetFromScreen(aboneHesap, groupBox1); UnitOfWork.Instance.GetRepository<AboneHesap>().Update(aboneHesap); UnitOfWork.Instance.Save(); MessageBox.Show(@"Abone Hesap İşlemi Guncellendi"); tool_SwGetButtonClicked(sender, e); }
public void AboneInsert(Abone abone) { UnitOfWork.Instance.GetRepository<Abone>().Create(abone); var aboneHesap = new AboneHesap { AboneId = abone.Id, Amount = abone.AboneType.Amount, Description = "Abonelik Bedeli", IslemDate = DateTime.Now, IslemType = Model.Util.IslemType.Borç }; UnitOfWork.Instance.GetRepository<AboneHesap>().Create(aboneHesap); UnitOfWork.Instance.Save(); }