コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public HallModel Get(Guid id)
        {
            Hall      hall  = _hallRepository.Get(id);
            HallModel model = Mapper.Map <HallModel>(hall);

            model.Features = _hallRepository.GetFeatures(hall.Id).Select(f => Mapper.Map <FeatureModel>(f)).ToList();
            return(model);
        }