Exemplo n.º 1
0
        // GET: SalesController/Details/5
        public ActionResult Details(int id)
        {
            Sale sale = _saleService.FindBy(id);

            if (sale == null)
            {
                return(RedirectToAction(nameof(Index)));
            }

            return(View(sale));
        }