示例#1
0
        // GET: Armies/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            try
            {
                var army = await _armyService.GetOneWithDetails(id);

                return(View(army));
            }
            catch (ArgumentNullException)
            {
                return(NotFound());
            }
            catch (Exception)
            {
                return(NotFound());
            }
        }