Exemplo n.º 1
0
        public IActionResult DeleteConfirmed(Guid id)
        {
            _palestraAppService.Remove(id);

            if (!IsValidOperation())
            {
                return(View(_palestraAppService.GetById(id)));
            }

            ViewBag.Sucesso = "Palestra Removida!";
            return(RedirectToAction("Index"));
        }
        public IActionResult Delete(Guid id)
        {
            _palestraAppService.Remove(id);

            return(Response());
        }