public async Task <IActionResult> DeleteConfirmed(Guid id)
        {
            var modeloViewModel = _mapper.Map <ModeloBancadaViewModel>(await _contexto.ObterPorId(id));

            if (modeloViewModel == null)
            {
                return(NotFound());
            }

            await _contexto.Remover(id);

            return(RedirectToAction("Index"));
        }
Пример #2
0
 public async Task Remover(Guid Id)
 {
     await _modeloRepository.Remover(Id);
 }