public ActionResult DeleteConfirmed(int id) { var marca = _marcaApp.GetById(id); _marcaApp.Remove(marca); return(RedirectToAction("Index")); }
public IActionResult Delete(Guid id) { if (_marcaAppService.GetById(id) == null) { return(NotFound("Marca not found")); } _marcaAppService.Remove(id); return(ResponseOk()); }