Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="model"></param>
        public void Update(HallModel model)
        {
            Hall   hall   = Mapper.Map <Hall>(model);
            string errors = Validate(hall);

            if (errors != null)
            {
                throw new ValidationException(errors);
            }

            _hallRepository.Update(hall);
        }