public void Update(Shooter shooter)
        {
            Shooter entity = FindById(shooter.ShooterId);

            entity.ShooterNumber = shooter.ShooterNumber;
            _repository.Commit();
        }
示例#2
0
        public void Update(Person person)
        {
            Person entity = FindById(person.PersonId);

            entity.FirstName = person.FirstName;
            entity.LastName  = person.LastName;
            _repository.Commit();
        }