public ActionResult Put([FromBody] ContributorTypeViewModel contributorTypeViewModel) { _contributorTypeService.UpdateContributorType(contributorTypeViewModel); return(Ok()); }
public void UpdateContributorType(ContributorTypeViewModel contributorType) { var dbRow = _mapper.Map <ContributorType>(contributorType); _contributorTypeRepository.UpdateContributorType(dbRow); }