Exemple #1
0
 public void Update(Parameters.UpdateParameter param)
 {
     param.Validate();
     Models.PaymentTerm term = repository.Get(param.Id);
     if (term.Value != param.Value)
     {
         assertPaymentTermNotExist(param.Value, term.OrganizationId);
         term.Value = param.Value;
         term.Name  = string.Format("{0} Hari", term.Value);
     }
     repository.Update(term);
 }