Exemple #1
0
        // GET: SalesRecords/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var salesRecord = await _salesRecordsService.FindAsync(id.Value);

            if (salesRecord == null)
            {
                return(NotFound());
            }

            return(View(salesRecord));
        }