public void Update([FromBody] OrgaoViewModel orgaoViewModel) { var orgao = _mapper.Map <Orgao>(orgaoViewModel); _orgaoRepository.Update(orgao); if (_orgaoRepository.SaveChanges() > 0) { } }
public void Update(int id, Orgao entity) { _orgaoRepository.Update(id, entity); }
public void Update(Guid Idorgao, OrgaoDTO orgaoNew) { repository.Update(Idorgao, mapper.Map <orgao>(orgaoNew)); }