示例#1
0
        public ActionResult DeleteConfirmed(int id)
        {
            var marca = _marcaApp.GetById(id);

            _marcaApp.Remove(marca);

            return(RedirectToAction("Index"));
        }
示例#2
0
        public IActionResult Delete(Guid id)
        {
            if (_marcaAppService.GetById(id) == null)
            {
                return(NotFound("Marca not found"));
            }

            _marcaAppService.Remove(id);
            return(ResponseOk());
        }