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

            _contributorTypeRepository.UpdateContributorType(dbRow);
        }