public IActionResult Update(CreateOrUpdatePersonProductRelationDto cPPRelationDto) { var ppRelation = _personProductRelationService.Update(_mapper.Map <PersonProductRelation>(cPPRelationDto)); return(NoContent()); }
public async Task <IActionResult> Save(CreateOrUpdatePersonProductRelationDto cPPRelationDto) { var newPPRelation = await _personProductRelationService.AddAsync(_mapper.Map <PersonProductRelation>(cPPRelationDto)); return(Created("", _mapper.Map <PersonProductRelationDto>(newPPRelation))); }