コード例 #1
0
        public IActionResult AddDescription(int pid)
        {
            ProtNameViewModel model = _productService.GetProName(pid);

            return(View(model));
        }
コード例 #2
0
ファイル: ProductService.cs プロジェクト: ngthcong/PhoneStore
        public ProtNameViewModel GetProName(int pid)
        {
            ProtNameViewModel viewModel = _mapper.Map <ProtNameViewModel>(_repo.GetProduct(pid));

            return(viewModel);
        }