public void Update(int id, ViewPersonDto model)
        {
            var person = _unitOfWork.PersonRepository.GetById(id);

            var game = _unitOfWork.GameRepository.GetById(model.Age);

            if (game == null)
            {
                throw new Exception("El juego no existe");
            }

            person = _mapper.Map <Person>(model);
            _unitOfWork.PersonRepository.Update(person);
            _unitOfWork.Commit();
        }
 public void Put(int id, [FromBody] ViewPersonDto model)
 {
     _personService.Update(id, model);
 }