public void Put(Guid id, [FromBody] Purchaser value) { Purchaser purchaser = _repository.Find(id); if (purchaser != null) { purchaser.Copy(value); _repository.Update(purchaser); _repository.SaveAll(); } }
public void Put(Guid id, [FromBody] Purchaser value) { Purchaser purchaser = _repository.Find(id); if (purchaser != null) { purchaser.Copy(value); _repository.Update(purchaser); _repository.SaveAll(); } }