public void Update(SalesRecord record, SalesRecordUpdateObject update)
 {
     Context.SalesRecords.Attach(record);
     update.ApplyTo(record);
 }
Esempio n. 2
0
 public Task <SalesRecord> UpdateAsync(SalesRecord record, SalesRecordUpdateObject update)
 {
     update.ApplyTo(record);
     return(Task.FromResult(record));
 }