public IActionResult AddDescription(int pid) { ProtNameViewModel model = _productService.GetProName(pid); return(View(model)); }
public ProtNameViewModel GetProName(int pid) { ProtNameViewModel viewModel = _mapper.Map <ProtNameViewModel>(_repo.GetProduct(pid)); return(viewModel); }