Exemplo n.º 1
0
        public IActionResult Delete(int id)
        {
            if (!Sales.Exists(id))
            {
                return(NotFound());
            }
            Sales.Delete(id);

            return(RedirectToAction(nameof(All)));
        }