public IActionResult DeleteConfirmed(Guid id)
        {
            _cardBrandAppService.Remove(id);

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

            ViewBag.Sucesso = "Card Brand Removed!";
            return(RedirectToAction("Index"));
        }
Example #2
0
        public IActionResult Delete([FromQuery] Guid id)
        {
            _CardBrandAppService.Remove(id);

            return(Response());
        }