public void Update(Horse updatedEntity) { var player = this.Get(updatedEntity.Id); player.Name = updatedEntity.Name; player.Weight = updatedEntity.Weight; }
public void Post(Horse player) { player.Id = nextID; horses.Add(player); }