public IActionResult DeleteConfirmed(Guid id) { _cardBrandAppService.Remove(id); if (!IsValidOperation()) { return(View(_cardBrandAppService.GetById(id))); } ViewBag.Sucesso = "Card Brand Removed!"; return(RedirectToAction("Index")); }
public IActionResult Delete([FromQuery] Guid id) { _CardBrandAppService.Remove(id); return(Response()); }