public PecaDTO GetById(Guid Idpeca) { return(mapper.Map <PecaDTO>(repository.GetById(Idpeca))); }
public PecaViewModel GetPecaById(int PecaId) { return(_mapper.Map <PecaViewModel>(_PecaRepository.GetById(PecaId))); }