private static CreditStatus Map(EditViewModel editViewModel) { var creditStatus = new CreditStatus { CreditStatusId = editViewModel.CreditStatusId, CreditStatusDescription = editViewModel.CreditStatusDescription }; return creditStatus; }
private void EditCreditStatus(CreditStatus creditStatus) { _creditStatusesRepository.EditCreditStatus(creditStatus); }
private void AddCreditStatus(CreditStatus creditStatus) { _creditStatusesRepository.AddCreditStatus(creditStatus); }
public void EditCreditStatus(CreditStatus creditStatus) { _databaseModel.Entry(creditStatus).State = EntityState.Modified; _databaseModel.SaveChanges(); }
public void AddCreditStatus(CreditStatus creditStatus) { _databaseModel.CreditStatus.Add(creditStatus); _databaseModel.SaveChanges(); }