Example #1
0
        public void RemoverAnexo(EditarExameViewModel viewModel)
        {
            var exame = _exameRepository.ObterPorId(viewModel.Id);

            _azureStorageService.Deletar(exame.Url);
            if (ExisteErrosNoModelState())
            {
                return;
            }

            exame.ContentType = null;
            exame.NomeArquivo = null;
            exame.Url         = null;
            _exameRepository.Atualizar(viewModel.Id, exame);
            _uow.Commit();
        }