public ActionResult <RetornoModificacaoLogViewModel> Put([FromBody] AlteraLogViewModel log)
        {
            var logViewModel = _repo.Alterar(log);

            if (logViewModel == null)
            {
                return(BadRequest());
            }
            return(Ok(logViewModel));
        }
        public RetornoModificacaoLogViewModel Alterar(AlteraLogViewModel entity)
        {
            var logViewModel = _mapper.Map <RetornoModificacaoLogViewModel>(_repo.Alterar(_mapper.Map <Log>(entity)));

            return(logViewModel);
        }