コード例 #1
0
ファイル: DetailService.cs プロジェクト: SoulWalker5/Dapper
        public DetailModel GetById(int id)
        {
            Detail detail = repository.GetById(id);

            var detailModel = new DetailModel()
            {
                Id    = detail.Id,
                CarId = detail.CarId,
                Name  = detail.Name,
                Price = detail.Price
            };

            return(detailModel);
        }