コード例 #1
0
        // GET: Admin
        public ActionResult Details(int id)
        {
            SaleInfoDTO details;
            ChartInfo   chartInfo;

            try
            {
                details   = _service.FindSaleInfoById(id);
                chartInfo = _service.GetChartInfo(details);
            }
            catch (Exception)
            {
                return(View("Error"));
            }

            ViewBag.Products = chartInfo.Products;
            ViewBag.Count    = chartInfo.Count;
            ViewBag.Summ     = chartInfo.Summ;

            return(View(details));
        }